transparency and v7.136

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

Moderators: XnTriq, helmut, xnview

neko
Posts: 2
Joined: Fri Jan 27, 2023 3:10 pm

transparency and v7.136

Post by neko »

Hi,
I'm having a problem with the new version.
NConvert 7.136

I want to transform a transparent png into a jpg with white background. I'm removing the alpha/transparency with -merge_alpha -truecolours and I'm setting the color of the background with -bgcolor 255 255 255.

Code: Select all

nconvert.exe -merge_alpha -truecolours -bgcolor 255 255 255 -out jpeg -o convert.jpg  alpha.png
alpha.png
When I use one of the previous versions of nconvert (v7.112, v7.99) the background is white as expected.
7.112 convert.jpg
when I convert the file with the latest version of nconvert (7.136) the background stays black.
7.136 convert.jpg

Is it a bug or is there something I'm not doing correctly? if so, thanks for any suggestion.
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 44589
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: transparency and v7.136

Post by xnview »

yes there is a change in .136, when converting 8bits with transparency with -truecolors, the result is RGBA picture
Please try

Code: Select all

-transpcolor 255 255 255 -truecolours -merge_alpha -out jpeg
Pierre.
neko
Posts: 2
Joined: Fri Jan 27, 2023 3:10 pm

Re: transparency and v7.136

Post by neko »

Yes it's OK now.
I've got to check if it'll work with WEBP files, but that's for an other day ;-)
Thanks Pierre