Regarding issue with resample option using convert command

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
papagi11
Posts: 10
Joined: 2013-11-01T08:01:51-07:00
Authentication code: 6789

Regarding issue with resample option using convert command

Post by papagi11 »

HI ,

I am trying the below TIF file to convert to JPG .

Copied the image below

https://docs.google.com/file/d/0B4IKFaN ... hPWFU/edit

command that I used :
convert /b/testDeer.tif -units pixelsperinch -resample 120 -profile /ImageMerchant/config/ICCProfiles/Recommended/USWebCoatedSWOP.icc /A/testDeer.jpg

I using the resample option to maintain the resolution . It is not converting properly , I see the image with white background after the conversion. I am not getting a good image .If i take out the resample option It is converting fine.

Could please any one help me to resolve this issue ?

Thanks,
Lavanya .
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Regarding issue with resample option using convert comma

Post by fmw42 »

Your file cannot be opened after downloading. It may be corrupt.

Also what version of IM and on what platform are you trying this.
Last edited by fmw42 on 2013-11-22T18:21:59-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Regarding issue with resample option using convert comma

Post by snibgo »

It opened fine for me.

The image has an alpha channel. Even though it is unassociated, IM uses it in the image. If you don't want this, use "-alpha off" after reading the file.
snibgo's IM pages: im.snibgo.com
Post Reply