Transparency

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

Moderators: XnTriq, helmut, xnview

Post Reply
maneavel
Posts: 4
Joined: Tue Apr 02, 2013 3:38 pm

Transparency

Post 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
User avatar
xnview
Author of XnView
Posts: 43327
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Transparency

Post by xnview »

Please use -merge_alpha if you don't save alpha channel
Pierre.
maneavel
Posts: 4
Joined: Tue Apr 02, 2013 3:38 pm

Re: Transparency

Post by maneavel »

Please use -merge_alpha if you don't save alpha channel
Works perfectly, thanks Pierre.
asabled
Posts: 1
Joined: Sun Sep 01, 2013 10:51 pm

Re: Transparency

Post 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
User avatar
xnview
Author of XnView
Posts: 43327
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Transparency

Post 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?
Pierre.
Post Reply