Page 1 of 1

NConvert : How to keep PNG tranparency after PNG Compression and Converting in Indexed Colors

Posted: Mon Feb 18, 2019 8:09 pm
by PREUX
Hello

My purpose is to decrease the file size of several png files.
I wish to make this correction with a command line such as :

"nconvert.exe" -o "Output.png" -clevel 9 -colors 8 "Input.png"

The conversion is made but I loose initial image tranparency.
How to find the PNG transparency.

Thanks

Re: NConvert : How to keep PNG tranparency after PNG Compression and Converting in Indexed Colors

Posted: Tue Feb 19, 2019 7:41 am
by xnview
if you decrease colors you can't keep transparency

Re: NConvert : How to keep PNG tranparency after PNG Compression and Converting in Indexed Colors

Posted: Tue Feb 19, 2019 2:32 pm
by PREUX
With the option : -colors 8 then the number of colors is reduced to 8 but it's not sufficient.