After disabeling 'Force Manual Crop effects to run first' at /admin/config/media/manualcrop I defined an manualcrop imagestyle with a canvas increase action first. The above configuation allows to run the effect before crop, but now the imagestyle isn't available anymore in the manualcrop settings of my image field instance. So this option is not useful, so I consider this as a bug.
My use case:
I want to upload signature images on white background and crop them to a fixed ratio of 500px to 100px.
As some of the source images are not wide enough (e.g. 600px x 400px) and the signature is relatively tall, I can not crop the whole signature with the fixed ratio of 5 to 1. For this I would need whitespace to the left and right.
So I defined an image stype (with imagecache_canvasactions) with an effect
> 'Define canvas left:+100 right:+100 top: bottom: #ffffff under image'
first, before the manual crop effect
> 'Manual Crop: Crop and scale 500x100 (upscaling allowed, crop minimum dimensions and only scale if cropped)'.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | effects_controll-2856940-4.patch | 1.4 KB | peximo |
Comments
Comment #2
Chris CharltonI remember seeing a module that lets you load an image_style in another image_style, so maybe you can try one image style with the manipulation steps, then have a separate image style with the Manual Crop setting that runs before the "embedded" image style.
Comment #3
marco.b@Chris Charlton
Hmm, this sounds interesting but I couldn't find the module so far. Is it imagestyles_rules?
Comment #4
peximo commentedThe problem seems to me that the module check only if manual crop is the first effect; but with the last dev we can set the manual crop effect in any position.
Attached patch should fix the problem.