Page 1 of 1

-clip throws error on linux

Posted: 2012-11-09T03:50:30-07:00
by touwejan
i'm trying to generate a jpg from a PSD file and need to apply the clipping path. I'm using the following command successfully on my local windows environment, using ImageMagick 6.8.0-4.

convert /home/test/test.psd -alpha transparent -clip -alpha opaque -strip -density 72x72 -units PixelsPerInch /home/test/result.psd

However, deploying on a linux test environment throws the following error:

image size differs `/home/test/test.psd' @ error/image.c/SetImageClipMask/2392.

Any solution to this problem? We have used this command on the server with a previous version of IM.

Re: -clip throws error on linux

Posted: 2012-11-09T11:00:30-07:00
by fmw42
For the IM developers to help, you probably need to post a link to your input psd file.

Re: -clip throws error on linux

Posted: 2012-11-12T01:59:29-07:00
by touwejan
The image that I used can be found at: https://www.dropbox.com/s/rkq83ac0dtibkhx/28200001.psd

Re: -clip throws error on linux

Posted: 2012-11-12T11:55:05-07:00
by fmw42
touwejan wrote:The image that I used can be found at: https://www.dropbox.com/s/rkq83ac0dtibkhx/28200001.psd

I am not sure what you are trying to do with the alpha aspect, but your command does not seem make any changes.

Are you using it properly? Do you have xml installed.

On my Mac OSX IM 6.8.0.4, this works fine to negate the red area inside the clip path. However, I am not sure whether the clip area is a protected area so the change should be on the outside, as in the clip-mask, or it is correct as it is for changing the inside.

convert 28200001.psd -clip -negate 1tmp2.jpg


see
http://www.imagemagick.org/script/comma ... s.php#clip
http://www.imagemagick.org/Usage/masking/#clip_mask

Can you provide a link to the result you expect?

Re: -clip throws error on linux

Posted: 2013-02-28T07:24:49-07:00
by Andreas
With ImageMagick-6.8.3-6 the problem is solved.