[magick-users] convert -clip seems to not work at all.

Coleman Nitroy coleman at nitroy.com
Mon Feb 4 10:32:54 PST 2008


Hello all,

I have been having issues with clipping paths using ImageMagick 6.3.2.  
I searched the list archives and all over the net this morning but I  
couldn't find the answer so I figured I would. Here are the steps I  
take to attempt to clip an image:

* I created these two test files

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 -clip 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 -clip Output.tiff

* This returns no errors or warnings but I get the same Output.tiff.  
Nothing clipped, also a failed method.
* One final test, I saw someone somewhere had used a different method  
for clipping so I run this command:

$ convert Test.tiff -fill white -draw "color 0 0 reset" -clip -draw  
"Image Copy 0,0 0,0 test.tiff" Output.tiff

* This creates a completely black image with no clipping done at all.

I assumed that this is how the -clip option works. Does anyone have  
any input on why I am (not) getting a clipped file on output? Is this  
a bug?

Thanks in advance,

Coleman Nitroy
coleman at nitroy.com


More information about the Magick-users mailing list