Reputation: 1313
I notice that some of my images on website looks low resolution in Chrome and in Mozilla they looks fine.
Here are screenshots
What can I do to solve this problem?
I found something like this, but it doesn't help
img {
image-rendering: optimizeSpeed; /* */
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Chrome (and Safari) */
image-rendering: optimize-contrast; /* CSS3 Proposed */
-ms-interpolation-mode: nearest-neighbor; /* IE8+ */
}
This is how it look when I add image-rendering: pixelated;
Upvotes: 3
Views: 9603
Reputation: 509
Test this:
1 . Pulse "Ctrl + 0" (zero) Its return to 100% web size.
Its works for me. ;)
Upvotes: 0
Reputation: 8551
It looks like Chrome does some anti-aliasing. So, first, it might help to save the picture in the desired size (s.t. it shows correctly when you do not apply any sizing e.g. using CSS). Then, according to CanIUse, for Chrome the CSS should read image-rendering: pixelated;
instead of Note: Safari's values have changed as well and MS doesn't support it anymore/yet in Edge.image-rendering: -webkit-optimize-contrast;
Upvotes: 2