batch convert bmp to png or jpg depending on alpha?

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

Moderators: helmut, XnTriq, xnview

Post Reply
shadowpower
Posts: 18
Joined: Sun Oct 13, 2013 3:16 am

batch convert bmp to png or jpg depending on alpha?

Post by shadowpower »

I have a lot of .bmp in different folders, some have alpha channel and some don't.
is it possible to batch convert a bunch of bmp and detect if they have an alpha channel

if they have alpha channel convert them to .png with transparency
if they don't have alpha channel convert them to .jpg (to reduce filesize)

or is it possible to convert them all to .png and if they don't have transparency (because the .bmp didn't have an alpha channel) convert them to .jpg and delete the .png that were converted to .jpg
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: batch convert bmp to png or jpg depending on alpha?

Post by xnview »

no sorry
Pierre.
Post Reply