We have a project where we would like to be able to extract metadata from files that are not supported in image fields such as .tiff files and videos.
To do this, we need the ability to extract metadata from file fields in addition to image fields.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | exif-2957395.png | 134.8 KB | dani3lr0se |
| #2 | exif-d8-extract-metadata-from-file-fields-2957395-2.patch | 1.22 KB | hosef |
Comments
Comment #2
hosef commentedHere is a patch that modifies the functions looking fo image fields to also return file fields.
Comment #3
hosef commentedComment #4
dani3lr0se commentedThe patch applies cleanly on my local site. I now see an option to use a file field. See attached screenshot as well. Thanks for the patch @hosef.
Comment #5
jphautin commentedSeems to be a different solution to the issue that allow tif in image field with help of imagemagick : https://www.drupal.org/project/drupal/issues/1014816#comment-12321142.
My question is should we integrate this solution instead of using a solution that has been incorporated in the core of drupal ?
Comment #6
hosef commentedThe solution in core only helps with tiff files.
This change would allow metadata extraction on a much larger set of files, such as videos, PDFs, and more.
Comment #7
damienmckennaComment #8
damienmckennaComment #9
damienmckennaCommitted. Thank you.
Comment #12
damienmckenna