Page 1 of 1

White background when converting PNG to JPG with nconvert?

Posted: Wed Jul 30, 2008 2:34 pm
by Rajko Aust
Hi

What is the correct nconvert command line parameter to convert a 32bit PNG with Alpha to a JPEG, so that the Alpha channel is merged but the background is not black (as recent)?

in XnView it works when converting 32bit PNG to 24bit the background is set to white, but not in nconvert :(

thanks for your help

Rajko

Posted: Wed Jul 30, 2008 4:37 pm
by Rajko Aust
This one DON'T work, why?

-bgcolor 255 255 255 -canvas 100% 100% center

Posted: Wed Jul 30, 2008 6:47 pm
by xnview
Use -transpcolor 255 255 255 -merge_alpha

Posted: Thu Jul 31, 2008 7:54 am
by Rajko Aust
Thank you, that saved me a lot of time!