"image" fields are a specialized subset of "file" fields.
image files can be uploaded to either type of field, and epsacrop should be available if applicable.
This patch adds epsacrop to "file" fields that use a "media" widget.

I have been able to use epsacrop on image files before, but no such luck in latest dev.
I'm not sure if this feature was accidentally reverted, or i was using a patch from somewhere else.

Comments

aaronbauman’s picture

Status: Active » Needs review
StatusFileSize
new1.17 KB
lklimek’s picture

Patch relolled against latest -dev.

cashwilliams’s picture

Issue summary: View changes
StatusFileSize
new1.19 KB

I couldn't get above patch to apply, so rerolled again. Fixes the issue I had.

marco.b’s picture

@cashwilliams:
I need the crop feature for jpg files at file fields. If I would use your patch, would the original file be edited by cropping or would the system generate cropped styles of the file?

ygerasimov’s picture

Status: Needs review » Needs work

Generally I agree that epsacrop should be posssible to add to file files. On other hand if someone will have file field of pdf type and get epsacrop functionality it will lead to big confusion. Lets have hook_alter instead.

immoreel’s picture

@ygerasimov doesn't the $field['type'] == 'image' solve the issue with PDF files?
Anywho, I've rerolled the patch for the latest dev as I couldn't patch it with #3

rcodina’s picture

Status: Needs work » Needs review
lukus’s picture

Hi

This is working well for me.

Would love to see this committed.

Thanks

Luke

yvmarques’s picture

Status: Needs review » Fixed

  • yvmarques committed 24e15cb on 7.x-2.x
    Issue #1943384, #2528094 by gaydamaka, aaronbauman, immoreel,...

Status: Fixed » Closed (fixed)

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