odiff icon indicating copy to clipboard operation
odiff copied to clipboard

Fix PNG missing IEND chunk

Open rickeywang opened this issue 8 months ago • 0 comments

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

rickeywang avatar Apr 16 '25 16:04 rickeywang