-clip throws error on linux

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
touwejan
Posts: 2
Joined: 2012-11-09T03:44:03-07:00
Authentication code: 67789

-clip throws error on linux

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: -clip throws error on linux

Post by fmw42 »

For the IM developers to help, you probably need to post a link to your input psd file.
touwejan
Posts: 2
Joined: 2012-11-09T03:44:03-07:00
Authentication code: 67789

Re: -clip throws error on linux

Post by touwejan »

The image that I used can be found at: https://www.dropbox.com/s/rkq83ac0dtibkhx/28200001.psd
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: -clip throws error on linux

Post 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?
Andreas
Posts: 3
Joined: 2013-02-24T10:35:31-07:00
Authentication code: 6789

Re: -clip throws error on linux

Post by Andreas »

With ImageMagick-6.8.3-6 the problem is solved.
Post Reply