Hello all,
This is a bit of a cross-post from the magick-users mailing list but I
figured it was more of a bug and I have since gotten some more
information on the issue.
I have been having issues with clipping paths using ImageMagick 6.3.x.
The specific issue is the clipping path seems to be ignored on PSDs.
6.2.x up to 6.2.6 seems to work fine with the clipping path and I
would use this as a solution but, only on PSDs made with CS2 and below
work. Here are the steps I take to attempt to clip an image:
* I created these two test files both with clipping paths
PSD version: http://cole.nitroy.com/Files/Temp/Test.psd
TIF version: http://cole.nitroy.com/Files/Temp/Test.tiff
* To test the PSD I run:
$ convert Test.psd -fill white -draw "color 0 0 reset" -clip -draw
"Image Copy 0,0 0,0 test.tiff" Output.tiff
convert: no clip path defined `Test.psd': Bad file descriptor.
* This creates Output.tiff but no part of the image has been clipped
so this is obviously a failed method.
* I will then try testing the tiff version instead with the command:
$ convert Test.tiff -fill white -draw "color 0 0 reset" -clip -draw
"Image Copy 0,0 0,0 test.tiff" Output.tiff
* This works showing that clipping does work, but not with PSDs.
I then try to convert the PSD into a tiff and see if the clipping path
is maintained.
$ convert -profile ColorArt85290.icc Test.psd -profile sRGB.icc -
colorspace rgb Test.tiff
* This outputs a tiff with no clipping information in it making it
useless to me.
I shall note that all of these commands work in 6.2 (with the
exception of with PSDs created with CS3) and properly maintain the
clipping path and clip it properly.
I can provide any data, more files, or the debug output for these
commands. I ran a diff on 6.2.6 (which works) against 6.3.8 on coders/
psd.c and poured over it for a bit but nothing stood out as the
culprit. I did notice that in the ChangeLog for 2006-04-10 6.2.7-0, it
states: Read PSD pre-combined layer. Maybe this change caused
unintended consequences that have gone unnoticed?
Thanks in advance,
Coleman Nitroy
--
email: [EMAIL PROTECTED]
www: cole.nitroy.com
_______________________________________________
Magick-bugs mailing list
Magick-bugs@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-bugs