Closed (fixed)
Project:
ImageCache Actions
Version:
6.x-1.x-dev
Component:
Canvas Actions Module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2012 at 05:33 UTC
Updated:
11 Nov 2012 at 10:10 UTC
My watermarking actions were failing if the source image was smaller than the watermark image. This caused errors like this in the logs:
ImageMagick reported error code 1. Message: convert: invalid argument for option `+-12+136': -geometry. in /var/www/maumusic.com.au/sites/default/modules/imageapi/imageapi_imagemagick.module on line 235.
Note the "+-" on the geometry offsets. The attached patch (tested on 6.x-1.9) resolves the issue by only prepending a + if the offset is equal or greater than 0 for x and y values.
| Comment | File | Size | Author |
|---|---|---|---|
| imagecache-actions-watermark.patch | 1.48 KB | agittins |
Comments
Comment #1
fietserwinThanks for reporting. fixed and committed (as the D7 version does, so slightly different code).