How to convert <=8bit to 32bit with transparency

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

ClausWARE
Posts: 1
Joined: Fri Oct 14, 2016 6:28 pm

How to convert <=8bit to 32bit with transparency

Post by ClausWARE »

How can I convert PNGs with <= 8 bits and transparent color to 32 bit PNGs with aplha transparency by batch processing?

In my attempts, XnView can only convert to 24bit and XnViewMP loses the transparency despite 32 bits. :(

Specifying the pallet index for the aplha transparency is not really useful because the index is different for each image, which should be taken over automatically.

Have I overlooked anything?
User avatar
XnTriq
Moderator & Librarian
Posts: 5999
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: How to convert <=8bit to 32bit with transparency

Post by XnTriq »

Welcome to the forum, ClausWARE.

It seems that 8-bit PNGs with index transparency can only be converted manually to 32-bit PNGs with alpha channel transparency.
With the exception of Add alpha, there's no command for increasing the color depth to 32-bit in XnView Classic's batch processing. The same goes for XnViewMP's and XnConvert's Change color depth action: If set to 32 bits, existing single color transparency is lost and replaced by a uniform alpha channel.

PNG test suites: