afs_imagemeta_extract - AFS - Reference Guides

AFS Filters Description

Product
AFS
Platform
7.11
Category
Reference Guides
Language
English

afs_imagemeta_extract filter extracts all image metadata (Exif, IPTC, XMP) into a new layer

The filter is declared with the afs_imagemeta_extract type. It is in the antidot-paf-misc package. It is a processor filter.

This filter will only work if instanced after the None filter.

This filter will only work if instanced before the None filter.

This filter can be instantiated only once at any given moment. It will not read the "instances" parameter in the configuration.

The Image meta extract filter specifications are described in the following table:

Parameter name

Mandatory

Type

Default

Description

input_layer

No

layer

CONTENTS

The layer from wich the data is read

output_layer

No

layer

USER_1

The layer where to expose the fetched data

output_format

No

string

XML

The serialized format in the OUTPUT layer. Values can be XML, JSON or SERIALIZED_PROTOBUF.

If file is not detected as an image, nothing is saved in output_layer and document remains OK. XML output example:
<afs:ImageMeta xmlns:afs="http://ref.antidot.net/v7/afs#">
   <afs:exif>
      <afs:meta name="Exif.Image.ImageDescription" type="Ascii">Antidot Logo</afs:meta>
   </afs:exif>
   <afs:iptc>
      <afs:meta name="Iptc.Application2.Caption" type="String">Antidot Logo</afs:meta>
   </afs:iptc>
   <afs:xmp>
      <afs:meta name="Xmp.dc.description" type="LangAlt">Antidot Logo</afs:meta>
   </afs:xmp>
</afs:ImageMeta>