ZenphotoCMS 1.6.6

xmpMetadata.php

Enable this filter to scan images (or <i>xmp sidecar</i> files) for metadata or when you get unexpected results from reading IPTC metadata containing non-ASCII characters, such as Cyrillic.

Relevant metadata found will be incorporated into the image (or album object). See Adobe XMP Specification for xmp metadata description. This plugin attempts to map the xmp metadata to Zenphoto or IPTC fields.

If a sidecar file exists, it will take precedence (the image file will not be examined.) The sidecar file should reside in the same folder, have the same prefix name as the image (album), and the suffix .xmp. Thus, the sidecar for image.jpg would be named image.xmp.

NOTE: dynamic albums have an .alb suffix. Append .xmp to that name so that the dynamic album sidecar would be named album.alb.xmp.

There are two options for this plugin

  • The suffix of the metadata sidecar file
  • A list of image file suffixes that may contain metadata
Check each image type you wish the plugin to search within for an xmp block. These are disabled by default because scanning image files can add considerably to the processing time.

The plugin does not present any theme interface.

Tags
author

Stephen Billard (sbillard)

Table of Contents

Classes

xmpMetadataOptions
xmpMetadata
Plugin option handling class

Constants

XMP_EXTENSION  = \strtolower(\strval(\getOption('xmpMetadata_suffix')))

Constants

XMP_EXTENSION

public mixed XMP_EXTENSION = \strtolower(\strval(\getOption('xmpMetadata_suffix')))

        
On this page

Search results