Wrong argument given to (ImageMagick) crop when using 'center'
jaguarondi - August 14, 2008 - 13:14
| Project: | ImageAPI |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I get -crop 150x100+-35+10! with the following 2 actions:
Scale width: 150, height: 120, upscale: No
Crop width: 150, height: 100, xoffset: center, yoffset: center
Imagecache produces a wrong output for convert: there's a '+-' in the crop geometry which is wrong and produces tiles instead of a single image.
ImageMagick command: /usr/bin/convert 'photos/2007-07-10--10.30.13.jpg' -resize 80x120! -crop 150x100+-35+10! -quality '75' 'sites/default/files/imagecache/fast_gallery_thumb0/photos/2007-07-10--10.30.13.jpg'

#1
This should be an imagemagick toolkit issue and a patch has been posted here
#2
imageapi is the correct place to fix this. marking this as a duplicate.
#3
whoops realized that was against the image.module rather than imageapi.module.