When imagemagick crop is called it adds a '+' in front of both the x and y offsets even when the supplied integers may be negative. This results in a +- set for the offset in the crop geometry and in certain versions of imagemagick that makes it tile the output image creating multiple files, none of which has the right filename (it tags on a -0 and -1 to the filenames).
The same exact issue has been reported in the imagecache issue queue here.
The attached patch just throws in some logic for wether it should be a '+' or a '-'.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | imagemagick-HEAD.crop-negative.3.patch | 1023 bytes | sun |
| #2 | 373759-sign.patch | 894 bytes | andypost |
| image.imagemagick.inc_.patch | 748 bytes | sarvab |
Comments
Comment #1
sunMoving to ImageMagick project.
Comment #2
andypostre-roll a bit different
Comment #3
sunThanks for reporting, reviewing, and testing! Committed attached patch to HEAD.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.