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.
-clip throws error on linux
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: -clip throws error on linux
For the IM developers to help, you probably need to post a link to your input psd file.
Re: -clip throws error on linux
The image that I used can be found at: https://www.dropbox.com/s/rkq83ac0dtibkhx/28200001.psd
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: -clip throws error on linux
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
With ImageMagick-6.8.3-6 the problem is solved.