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.

Comments

hosef created an issue. See original summary.

hosef’s picture

Status: Active » Needs review
StatusFileSize
new1.22 KB

Here is a patch that modifies the functions looking fo image fields to also return file fields.

hosef’s picture

Assigned: hosef » Unassigned
dani3lr0se’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new134.8 KB

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

jphautin’s picture

Seems 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 ?

hosef’s picture

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

damienmckenna’s picture

damienmckenna’s picture

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thank you.

  • DamienMcKenna committed 847818b on 8.x-1.x authored by hosef
    Issue #2957395 by hosef, dani3lr0se, DamienMcKenna: Allow metadata...

  • DamienMcKenna committed 4df2499 on 8.x-2.x authored by hosef
    Issue #2957395 by hosef, dani3lr0se, DamienMcKenna: Allow metadata...
damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed
Related issues: +#3182081: Plan for Exif 8.x-2.3

Status: Fixed » Closed (fixed)

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