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

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
PREUX
Posts: 2
Joined: Mon Feb 18, 2019 7:53 pm

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

Post 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
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

if you decrease colors you can't keep transparency
Pierre.
PREUX
Posts: 2
Joined: Mon Feb 18, 2019 7:53 pm

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

Post by PREUX »

With the option : -colors 8 then the number of colors is reduced to 8 but it's not sufficient.
Post Reply