Page 1 of 1

transparency and v7.136

Posted: Fri Jan 27, 2023 3:47 pm
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 2714 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 2714 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 2714 times

Is it a bug or is there something I'm not doing correctly? if so, thanks for any suggestion.

Re: transparency and v7.136

Posted: Sun Jan 29, 2023 7:35 am
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

Re: transparency and v7.136

Posted: Tue Jan 31, 2023 11:03 am
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