libspng
libspng copied to clipboard
Allow encode formats that match the PNG format
Currently only SPNG_FMT_PNG
and SPNG_FMT_RAW
is allowed when encoding. allow other formats that also match the PNG format e.g. SPNG_FMT_RGB8
when the PNG color type is truecolor and bit depth is 8.