odiff
odiff copied to clipboard
Fix PNG missing IEND chunk
Per https://libspng.org/docs/encode/#spng_encode_chunks
"PNG must be explicitly finalized, this can be done with the SPNG_ENCODE_FINALIZE flag or with a call to spng_encode_chunks() after the image has been encoded."
This adds the finalization step for PNG, which was missing before. Now PNGs from odiff can be used for further processing via e.g. ghostscript, etc...
Fixes https://github.com/dmtrKovalenko/odiff/issues/109