Extracts meta data from files into a neos/metadata data structure
This package handles extraction of meta data from assets.
Install using composer:
composer require neos/metadata-extractor
Some related packages are:
neos/metadata: Provides provides data types and interfaces (and is automatically installed with this package)
neos/metadata-contentrepositoryadapter: Handles the mapping of meta data DTOs to the Neos Content Repository
The package requires the
exif PHP extension and uses the
iptcparse() function (which
is available in PHP by default.)
This package provides realtime meta data extraction. This can be switched off, if needed, using:
Neos: MetaData: Extractor: realtimeExtraction: enabled: false
The package extracts IPTC and EXIF meta data from assets using a CLI command:
When creating assets, the extraction is run as well (unless realtime extraction is disabled.)
The exact effect of the extraction depends on the implementation. If only this package is
installed and no further functionality has been implemented, the data supported by the
AssetModelMetaDataMapper from Neos.MetaData is stored in
In other words: You will get title, caption and copyright notice extracted and stored out of the box.
For developers, the package provides the
implementing classes decide if they will be used for a specific resource. The
implements a check by media type. Just extend and set
$compatibleMediaTypes to the possible
media type range(s). Returned DTOs are added to a collection and forwarded to the central
MetaDataManger of the Neos.MetaData package.
ExtractionManager itself generates the
Asset DTO for every valid asset.
IptcIimExtractor (IPTC IIM)