transparency and v7.136

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

Moderators: helmut, XnTriq, xnview

Post Reply
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
transparent png file
transparent png file
alpha.png (1.04 KiB) Viewed 2710 times
When I use one of the previous versions of nconvert (v7.112, v7.99) the background is white as expected.
converted file without transparency and white background from nconvert 7.112
converted file without transparency and white background from nconvert 7.112
7.112 convert.jpg (2.19 KiB) Viewed 2710 times
when I convert the file with the latest version of nconvert (7.136) the background stays black.
converted file without transparency and black background from nconvert 7.136
converted file without transparency and black background from nconvert 7.136
7.136 convert.jpg (2.17 KiB) Viewed 2710 times

Is it a bug or is there something I'm not doing correctly? if so, thanks for any suggestion.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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
Post Reply