Closed (fixed)
Project:
EPSA Crop - Image Cropping
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Mar 2012 at 16:00 UTC
Updated:
23 Aug 2013 at 10:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
cwithout commentedSecond this request. This is one of the last things that imagecrop has that keeps me from being able to this one instead -- which I like more because of the UI.
Here's a summary of the use-case and how to implement the feature:
Like kiyoshin said, you want 3 different size thumbnails, but you want your user to only need to select the crop area once rather than select the same crop area 3 times.
To accomplish this, you need reuse the crop selection. Then resize and/or perform additional cropping on the selection to get different size thumbnails.
On the image style for the largest size (420x270), you set an EPSA Image Crop effect and enable that for the field. For the remaining 2 image styles, you set a Reuse EPSA Image Crop effect *instead of* a EPSA Image Crop effect. After that effect, you add a scale or scale and crop effect set to the dimensions of the smaller sizes.
By reusing the crop for the largest image style, your user only needs to select one cropping region.
I've got this working (using imagecrop's code as a model). I just have to turn it into a patch.
Comment #2
cwithout commentedPatch is attached. See #2 for instructions on how to use this feature.
Comment #3
kiyoshin commentedI tried #2 patch and this works what exactly I expected!
Thank you so much , crisinawithout.
I will keep reporting any bags which I may find.
Comment #4
cimo75 commentedVery nice, should be committed.
Comment #5
cwithout commentedI've been using this on a couple sites and it's been tested by others. I think it's ready for RTBC.
Comment #6
yvmarques commentedComment #7.0
(not verified) commentedEdited.