I'm working for news sites.
What I want to do is applying the crop information to multiple image styles.
When the node which contains the image, the thumbnails from the image are created.
Then the node will be appears at multiple places with several sizes of thumbnails (420x270, 128x72 or 36x27).
Currently I set up with 3 types image style which have EPSA crop function. So users have to crop 3 times for each image style.
Ideally if there is options to copy the crop information and resize the image, user can avoid multiple crops.

Thanks!

CommentFileSizeAuthor
#2 epsacrop-crop-reuse-1478934-2.patch3.17 KBcwithout

Comments

cwithout’s picture

Assigned: Unassigned » cwithout
Status: Needs work » Active

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

cwithout’s picture

Status: Active » Needs review
StatusFileSize
new3.17 KB

Patch is attached. See #2 for instructions on how to use this feature.

kiyoshin’s picture

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

cimo75’s picture

Very nice, should be committed.

cwithout’s picture

Status: Needs review » Reviewed & tested by the community

I've been using this on a couple sites and it's been tested by others. I think it's ready for RTBC.

yvmarques’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Edited.