3 ms·
Why can't you resize it? Because of the filtering? You can turn that off in css, right?
by 01HNNWZ0MV43FF 2y ago
Why can't you resize it? Because of the filtering? You can turn that off in css, right?
- AndrewStephens 2y agoI am the author of the sheep.horse link above, although here[0] is an updated link. Even with filtering turned off you get slightly incorrect results, especially if you are resizing down where aliasing might completely ruin your image. Harsh black-and-white dithering is very susceptible to scaling artifacts. If you want pixel perfect dithering for the screen you are viewing the page on, you need to do it client side. Whether or not this is worth the bother is up to you. [0] https://sheep.horse/2023/1/improved_web_component_for_pixel-accurate_atkinson.html https://sheep.horse/2023/1/improved_web_component_for_pixel-...
- pixelpoet 2y agoNote that this isn't a problem for blue noise based dithering; nevertheless, it's better if dithering is the last operation, and the result displayed 1:1 with pixel output.