I have an indexed PNG, where index 25 is transparent.
Using nconvert, is there a way to convert this to RGBA, where the alpha for the pixels that were index 25 now have an alpha of zero?
-- basically just the image/32bits menu option from XnView
Convert indexed PNG with transparency to RGBA?
Moderators: XnTriq, helmut, xnview
Re: Convert indexed PNG with transparency to RGBA?
In writing the post I answered my own question - use the -32bits flag...
"C:\Program Files (x86)\XnView\nconvert.exe" -overwrite -add_alpha 255 -merge_alpha -ctype rgba -32bits -out png -clevel 8 -o out.png in.png
"C:\Program Files (x86)\XnView\nconvert.exe" -overwrite -add_alpha 255 -merge_alpha -ctype rgba -32bits -out png -clevel 8 -o out.png in.png