Page 1 of 1

Transparency

Posted: Tue Apr 02, 2013 3:47 pm
by maneavel
Hi,

I'm using nconvert to convert PNG to JPG using this lign of command : xnview -npcd 2 -size 256x256+0 -ctype rgb -corder inter -out jpeg -o C:\Images450\%%.jpg -autocrop 0 255 255 255 -ratio -rtype lanczos -rflag orient -resize 450 450 -bgcolor 255 255 255 -canvas 450 450 center "C:\Users\PPMC-Julien\Desktop\base\ChouChous-Minis-carreaux-amande-164908.jpg"


When i use xNview : no problem.

But when i use nconver i got this kind of result :
Image


Do you know what i'm doing wrong?

Thank you for you help!!

there's the original :
Image

Re: Transparency

Posted: Tue Apr 02, 2013 7:11 pm
by xnview
Please use -merge_alpha if you don't save alpha channel

Re: Transparency

Posted: Tue Apr 02, 2013 10:08 pm
by maneavel
Please use -merge_alpha if you don't save alpha channel
Works perfectly, thanks Pierre.

Re: Transparency

Posted: Sun Sep 01, 2013 11:13 pm
by asabled
Hello
I have a similar problem while trying to convert transparent png to to transparent tiff.
I would like to keep the transparency but I get strange results

Here is a screenshot
http://cjoint.com/?0Icbjes9Oqh


The command line used is
nconvert.exe -out tiff -o test.tif -overwrite -resize longest 100 test.png

Thank for your help

Re: Transparency

Posted: Mon Sep 02, 2013 8:17 am
by xnview
asabled wrote:Hello
I have a similar problem while trying to convert transparent png to to transparent tiff.
I would like to keep the transparency but I get strange results
could you send me your file?