neos/metadata-extractor

Last activity 31 Oct 2019 9 7 2857
composer require neos/metadata-extractor

Extracts meta data from files into a neos/metadata data structure

2.1.1

Version
2.1.1
Type
neos-package
Release Date
Oct 31, 2019 10:51
Source
git
Distribution
zip
Requires
MIT
  • #flow
  • #metadata
  • #exif
  • #neos
  • #meta data
  • #extractor
  • #iptc
  • #iptc iim
  • #iptciim
d9bc90b4f4b8af916296c18e547bcf9003f60a20

StyleCI Build Status Latest Stable Version Total Downloads License

Neos.MetaData.Extractor Package

This package handles extraction of meta data from assets.

Installation

Install using composer:

composer require neos/metadata-extractor

Some related packages are:

Requirements

The package requires the exif PHP extension and uses the iptcparse() function (which is available in PHP by default.)

Configuration

This package provides realtime meta data extraction. This can be switched off, if needed, using:

Neos:  
  MetaData:  
    Extractor:  
      realtimeExtraction:  
        enabled: false

Usage

The package extracts IPTC and EXIF meta data from assets using a CLI command:

./flow metadata:extract

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 Asset models.

In other words: You will get title, caption and copyright notice extracted and stored out of the box.

For developers, the package provides the ExtractorInterface. Using isSuitableFor() the implementing classes decide if they will be used for a specific resource. The AbstractExtractor 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.

Extractors

The ExtractionManager itself generates the Asset DTO for every valid asset.

ExifExtractor (EXIF)

Supported Media Types

  • image/jpeg
  • image/tiff
  • video/jpeg

Generated DTOs

  • EXIF

IptcIimExtractor (IPTC IIM)

Supported Media Types

  • application/octet-stream
  • application/x-shockwave-flash
  • image/bmp
  • image/gif
  • image/iff
  • image/jp2
  • image/jpeg
  • image/png
  • image/psd
  • image/tiff
  • image/vnd.microsoft.icon
  • image/vnd.wap.wbmp
  • image/xbm

Generated DTOs

  • IPTC
The content of the readme is provided by Github
The same vendor provides 81 package(s).