Question

Reading and writing IPTC Photo Metadata Standard - is there a way to get FME to write IPTC metadata?

  • 27 January 2022
  • 2 replies
  • 19 views

Badge +1

We have a large number of photos taken in many countries and contexts. They are from a range of people from professional photographers to amateurs, using everything from professional DSLRs to smartphones.

Preparations are ongoing to load them into a new professional online media library. The online media library can read certain IPTC metadata fields. We are considering an interface where staff around the world can upload their photos and add the required metadata. To facilitate easier integration into the media library, being able to write the user input to IPTC metadata fields/tags with FME would cut out a significant manual step.

 

All I found on the Safe site was this:

https://community.safe.com/s/question/0D54Q000080hV8xSAE/can-iptc-metadata-tags-be-exposed-using-fme-


2 replies

Badge +1

Hi @mb_fdfa , I've taken a look into FME's capabilities regarding IPTC and at the moment it doesn't look like the metadata tags can be exposed. I would suggest submitting an idea on the community to gather interest from the user community as well.

Hi @mb_fdfa ,

an extract from our Wiki (translated with google, sorry).

 

automated creation of image metadata

​FME fills EXIF

FME supports the processing of EXIF data for the JPG format, the FME documentation contains a list of the supported JPEG Feature Type Format Attributes in FME. The FME process creates the image file (jpg) and transfers the picture desription information, e.g. from the POI-Database to the EXIF data of the image.

 

EXIFTool fills IPTC

Filling the IPTC data with FME does not (yet) seem possible, the IPTC tags are filled with Phil Harvey's ExifTool. ExifTool is free software for reading, writing and editing metadata for image, audio and video files. The ExifTool is called from the command line, it can be controlled via the command line and/or via a parameter file.

The ExifTool then transfers (copys) the metadata from the EXIF area to the IPTC area and - if necessary - also cleans up the EXIF data.

 

our parameter file for Exif-Tool  

#------------------------------------------------------------------------------
# Datei:        exif2iptc.args
#
# Beschreibung: Parameter zur Übertragung von EXIF-Tags in IPTC-Tags mit EXIFTOOL
#               Ergänzung um statische IPTC-Tags
#               Leeren temporär genutzter EXIF-Tags
#
# Anwendung:    exiftool -tagsFromFile STARDATEI -@ exif2iptc.args ZIELDATEI

#               Beispiel DOS-Befehl für eine JPG-Datei
#               C:\ExifTool\exiftool.exe -tagsFromFile C:\Daten\EXIF2IPTC\100521_N.jpg  -@ C:\Daten\EXIF2IPTC\exif2iptc.args C:\Daten\EXIF2IPTC\100521_N.jpg
#
#               Beispiel DOS-Befehl für mehrere JPG-Datei
#               for %f in (*.jpg) do  C:\ExifTool\exiftool.exe -tagsFromFile C:\Daten\EXIF2IPTC\%f  -@ C:\Daten\EXIF2IPTC\exif2iptc.args C:\Daten\EXIF2IPTC\%f
#
# Revision:     2021/03/17 - Stadt Solingen, Geodatenmanagement SD62, H. Gilges 
#               aufbauend auf einem Beispiel von P. Harvey
#
# Anmerkungen:  Warmneldung für die IPTC--Tag-Reihenfolge kann ignoriert werden
#
#-------------- Setzen der IPTC-Tags ------------------------------------------
#
-IPTC:ObjectName < EXIF:XPTitle
-IPTC:Keywords < EXIF:XPKeywords
-IPTC:By-line < EXIF:XPAuthor
-IPTC:By-lineTitle < EXIF:Make
-IPTC:City=Solingen
-IPTC:Sub-Location < EXIF:ImageDescription
-IPTC:Province-State=Nordrhein-Westfalen
-IPTC:Country-PrimaryLocationCode=DEU
-IPTC:Country-PrimaryLocationName=Deutschland
-IPTC:Headline < EXIF:ImageDescription
-IPTC:CopyrightNotice < EXIF:Copyright
-iptc:Caption-Abstract < $EXIF:XPTitle $/$EXIF:ImageDescription $/$EXIF:XPSubject $/Blickrichtung $EXIF:XPComment
-IPTC:Writer-Editor < EXIF:Make
#
#----------- temporär genutzte EXIF-Tag zurücsetzen ---------------------------
#
#  Make: temporär genutzt eigentlich der Kamerahersteller
#
#  XPComment: sieht in den Datei-Eigenschaften des Windows-Explorers besser aus
#
-EXIF:Make=
-EXIF:XPComment=
#end

Hardcopy_Bildmetadaten_IrfanView 

 

Reply