Open pan-haos opened 6 years ago
Pngquant doesn't add any extra chunks to identify itself. Images generated by pngquant will be in PNG8 format (8-bit indexed) as opposed to 24 or 32-bit variants. If you only convert 24/32-bit PNG files, and skip 8-bit ones, you will get the desired effect.
I use pngquant to compress the image and read the bytecode of the image. I found that the content of the bytecode has been changed. I want to know if the pngquant compressed image has the same identifier as the zTXt chunk. Do I need to compress the image After adding a chunk to the image to identify the image is compressed with pngquant, to avoid the project repeatedly compressing the same image during the construction process.