I am trying to scale up css sprite pixel art images and want to COMPLETELY disable the anti-aliasing/image smoothing.
Per this post here: Disable antialising when scaling images I have tried the following css
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: optimize-contrast;
-ms-interpolation-mode: nearest-neighbor;
It worked exactly like I wanted in firefox, however in Chrome and I.E. it helps a little, but some image interpolation/smoothing/anti-aliasing is still occuring.
I am not wanting to use a canvas element, but rather just stick with the CSS background image sprites.
Is there a way to accomplish the same results as the “-moz-crisp-edges” in the other browsers?
Unfortunately, it looks like your options are either using the canvas, using JavaScript, or living with anti-aliasing in Chrome and I.E.
Here are some responses that might help you with one of the other two if you don't choose to live with the anti-aliasing:
Sorry there isn't better news for you on this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With