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
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

sarvab - February 13, 2009 - 03:44

This should be an imagemagick toolkit issue and a patch has been posted here

#2

drewish - May 3, 2009 - 18:32
Status:active» duplicate

imageapi is the correct place to fix this. marking this as a duplicate.

#3

drewish - May 3, 2009 - 18:33
Project:ImageCache» ImageAPI
Version:6.x-1.0-alpha2» 7.x-1.x-dev
Status:duplicate» active

whoops realized that was against the image.module rather than imageapi.module.

 
 

Drupal is a registered trademark of Dries Buytaert.