image-rendering
Determines how the browser should upscale or downscale an image. It's especially useful for making pixel art look sharp ('pixelated') rather than blurry when enlarged.
It is documented as part of the CSS Images specification.
Syntax
/* Usage Example */
.pixel-art {
/* Keeps pixel edges sharp when the image is scaled up */
image-rendering: pixelated;
}
/* Syntax */
image-rendering: auto;
image-rendering: crisp-edges;
image-rendering: pixelated;
image-rendering: smooth;
/* Global values */
image-rendering: inherit;
image-rendering: initial;
image-rendering: revert;
image-rendering: revert-layer;
image-rendering: unset;
image-rendering Browser support
Widely available
Since
2021 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.
13+
3.6+
6+
79+