Convert PNG -> JPG, transaprency is black

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

Moderators: XnTriq, xnview

Gordon

Convert PNG -> JPG, transaprency is black

Post by Gordon »

I am trying to convert PNGs with transparency to JPG, but the transparency is always black. I woudl like ti to be white. I have tried the -transpcolor option but I didn't do anything.

If it possible to set the transparency color converting to JPG?
Is this syntax correct?

... -out jpeg -transpcolor 255 255 255 -keepcspace -q 100 ...
User avatar
xnview
Author of XnView
Posts: 37575
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Convert PNG -> JPG, transaprency is black

Post by xnview »

Gordon wrote:I am trying to convert PNGs with transparency to JPG, but the transparency is always black. I woudl like ti to be white. I have tried the -transpcolor option but I didn't do anything.

If it possible to set the transparency color converting to JPG?
Is this syntax correct?

... -out jpeg -transpcolor 255 255 255 -keepcspace -q 100 ...
You can't change the transparency color when saving in jpeg
Pierre.
George

Post by George »

Just refreshing the subject as I see it as unfixed problem... Is it possible to solve it?
bertrand2

Post by bertrand2 »

Same problem, up! :D
Rajko Aust
Posts: 5
Joined: Fri Oct 13, 2006 3:35 pm

Post by Rajko Aust »