"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.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | epsacrop-file_field_support-1943384-4.patch | 1.18 KB | immoreel |
| #3 | epsacrop-file_field_support-1943384-3.patch | 1.19 KB | cashwilliams |
| #2 | epsacrop-file_field_support-1943384-2.patch | 1.88 KB | lklimek |
| #1 | epsacrop-file_field_support-1943384.patch | 1.17 KB | aaronbauman |
Comments
Comment #1
aaronbaumanComment #2
lklimek commentedPatch relolled against latest -dev.
Comment #3
cashwilliams commentedI couldn't get above patch to apply, so rerolled again. Fixes the issue I had.
Comment #4
marco.b@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?
Comment #5
ygerasimov commentedGenerally 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.
Comment #6
immoreel commented@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
Comment #7
rcodinaComment #8
lukusHi
This is working well for me.
Would love to see this committed.
Thanks
Luke
Comment #9
yvmarques commented