w3c / png

Maintenance of the PNG specification
https://w3c.github.io/png/
Other
44 stars 11 forks source link

new chunk type for listing preferred scaling algorithms. #455

Closed lolbinarycat closed 2 months ago

lolbinarycat commented 2 months ago

something like an sALG chunk that contains a comma-seperated list of scaling algorithms, from most to least preferred.  "nn" stands for "nearest neighbor".  software is free to ignore the field if it does not support any of the listed algorithms.

this allows pixel artists to upload their art at original quality without it becoming a blurry mess.

Crissov commented 2 months ago

Is this a duplicate of #21?

ProgramMax commented 2 months ago

It is. However, @lolbinarycat's suggestion to make it an enum rather than a bool is a good idea. I'll close this as a duplicate and call out the enum benefit over there.