compressorjs icon indicating copy to clipboard operation
compressorjs copied to clipboard

Loses Transparency In PNG Image

Open choudhary-ankit opened this issue 6 months ago • 2 comments

While attempting to compress a PNG image, it loses its transparency. I have tried specifying the mimeType value as both 'auto' and 'image/png', but in both cases, the PNG image loses its transparency. Can you help fix this issue?

choudhary-ankit avatar Jan 01 '24 05:01 choudhary-ankit

I also facing the issue in the png that I cannot compress the png file

image

Ramishscrapper avatar Feb 10 '24 16:02 Ramishscrapper

If you set the mimeType option to 'image/png', you may also need to set the strict option to false.

fengyuanchen avatar Feb 26 '24 11:02 fengyuanchen