Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

file_mdm

55,671 sites Security covered
View on drupal.org

A module that provides a file metadata manager service and API. Allows to get, via an unified API, information stored in files like EXIF photo information, TrueType font information, etc.

Metadata protocols are pluggable. Developers can implement a plugin and use the service framework to get the metadata required.

The following plugins are provided by the module:

  • exif - Uses the PHP Exif Library to read/write EXIF information to image files, bypassing the limitations of the standard PHP Exif extensions which only provides read capabilities. Enable the File metadata - EXIF submodule to enable this plugin.
  • font - Uses the PHP Font Lib to read font information from TTF/OTF/WOFF font files. Enable the File metadata - Font submodule to enable this plugin.
  • getimagesize - Caches calls to the PHP getimagesize() function.

Plugins provided by other modules:

Features:

  1. Load from, and save to, file embedded metadata directly from the files.
  2. Metadata for a file is statically cached during a request's lifetime. This avoids different modules all repeat I/O on the same file.
  3. Metadata can be cached in a Drupal cache bin to avoid repeating I/O on the files in successive requests.
  4. Metadata standards (EXIF, TTF, etc.) are implemented as plugins. The service loads the metadata plugin needed based on the calling code request.
  5. Manages copying to/from local temporary storage files stored in remote file systems, to allow PHP functions that do not support remote stream wrappers access the file locally.

This module is inspired by discussions at #2630242: Provide methods to retrieve EXIF image information via the Image object.

Installation

The module MUST be installed using Composer.

Configuration:

- Go to Manage > Configuration > System > File Metadata Manager and specify
the cache retention requirements, in general and/or per each metadata plugin.

Usage examples:

Activity

Total releases
4
First release
Jan 2025
Latest release
9 months ago
Release cadence
58 days
Stability
25% stable

Release Timeline

Releases

Version Type Release date
3.2.0 Stable Jul 10, 2025
3.2.0-rc1 Pre-release Jun 8, 2025
3.2.0-beta1 Pre-release Jan 19, 2025
3.2.x-dev Dev Jan 18, 2025