3 ms·
Wouldn't the correct css for the dithered image be `crisp-edges`? From the specification: > The image must be scaled with an algorithm that preserves contrast
by elbasti 5y ago
Wouldn't the correct css for the dithered image be `crisp-edges`? From the specification:
> The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process. [...] This value is intended for pixel-art images, such as in browser games.
- dvt 5y agoNo, `crisp-edges` allows for algorithms[1] like HQ2X and 2xSaI, which would not work with the dithered images, whereas `pixelated` enforces nearest-neighbor scaling. [1] https://en.wikipedia.org/wiki/Pixel-art_scaling_algorithms https://en.wikipedia.org/wiki/Pixel-art_scaling_algorithms