Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

File metadata manager

59,681 sites Security covered Drupal 11 · not 10
View on drupal.org

This module provides a service to extract and manage metadata from various file types, including image EXIF data and font information. It uses a pluggable system, allowing developers to add support for new metadata formats, and caches this information to improve performance.

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:

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

4 tracked projects depend on this one

Activity

Tracked releases
4
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

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