Skip to main content
Released

EXIF writer

  • October 29, 2015
  • 9 replies
  • 119 views
danilo_fme
dustin
  • danilo_fme
    danilo_fme
  • dustin
    dustin

fmelizard
Safer
EXIF writer. The reader already exists and has been useful.
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

9 replies

annette2
Contributor
Forum|alt.badge.img+10
  • Contributor
  • October 19, 2016

I'm pulling photos out of SDE, collected by Collector/AGOL and writing out jpeg images. I would really like to include exif info on the output so the photos could be used by other applications in the future. At the moment the jpeg photos that are written are dumb.


lifalin2016
Contributor
Forum|alt.badge.img+29
  • Contributor
  • December 7, 2016

Good idea, but as EXIF is meta data, a separate writer doesn't make much sense as such.

I think it would be better to insert EXIF as a "Styler", which adds exif attributes to the features, which the relevant writers (JPEG, PNG et.al.) will recognize.

Just my humble opinion :-)


jpdenboer
Contributor
Forum|alt.badge.img+2
  • Contributor
  • November 17, 2017
Or a EXIF-attributesetter which an image writer recognizes!

 

 


LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • February 1, 2018

Hi @annette2, @lifalin2016 and @famjpdenboer,

Writing EXIF tags now available in FME 2018.0 Betas (Build 18254+)

This means any JPEG read into FME containing EXIF tags can be written back out to JPEG without losing the EXIF tags. To do this, add a new JPEG writer to the canvas ensure that Write to EXIF Tags is set to Yes.

'

If you are using an older workspace, you will need to add a new JPEG writer (not just update), this is to ensure that existing JPEG writer settings aren’t overwritten with the upgrade.

FME supports most of the available EXIF Tags, this website lists all EXIF tags. If there is a EXIF tag that isn't supported in FME, please add a comment to this idea indicating which tag you would like support for.

You can also add EXIF tags to any raster format being written out to JPEG by using an AttributeCreator and creating the EXIF tags you would like to add. Add jpeg_exif_ before any of the EXIF tag types and then manually set the attribute data. Example attributes:

'

Please note that this is a beta feature and its functionality and appearance are subject to change as the product continues to evolve before the official release. Should this feature or its implementation not address your concerns, related to this Idea posting, please let us know by leaving a comment. As with all beta features and beta versions of our software, they are not considered production-safe and should be incorporated into your workflows with consideration and testing.


lifalin2016
Contributor
Forum|alt.badge.img+29
  • Contributor
  • February 2, 2018
Good news.

 

 

As my comment says, I do still think, that all relevant raster writers should automatically recognize existing EXIF tags, and that an "EXIFMetadataStyler" would have been a more comprehensible choice. But this is a good start.

 

 

Cheers

 


joshuadamron
Contributor
Forum|alt.badge.img+7

@lizsanderson Is there a list of the EXIF fields that FME can currently write to? If not can you please provide one in this thread?

 

I need to be able to write field inspection attributes for my purposes the most basic needs are:

 

XPTitle, XPSubject, XPComment, XPAuthor, XPKeywords, ImageDescription, DateTimeOriginal,GPSLongitude,GPSLatitude,GPSLatitudeRef,GPSLongitudeRef

 

I assumed that these fields would be incorporated into the writer as essential, however testing it out I'm finding that these values are not being written.

I'm working with images captured via Esri's AGOL Collector (like the example workflow in the above comment by @annette2), my images are of field inspections/evaluations of burned trees and damaged infrastructure. A lot of data has been collected in ArcGIS however it is important that this data be incorporated into the inspection images to ensure that as images are shared between staff and the public they don't lose their supporting data.

 

The above EXIF field names were retrieved from here:

https://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/EXIF.html

https://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/GPS.html

Thank you!


LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • May 14, 2019

Hi Joshua,

You can find all of those attributes in the JPEG documentation, the format for each of those would be jpeg_exif_xptitle where you would replace xptitle with each of the attributes you are interested in writing.

Hope that helps,

 

-Liz


joshuadamron
Contributor
Forum|alt.badge.img+7

@lizsanderson Thank you for the link!

I learned that the EXIF tags are required to be all lowercase letters... now that I know that its all good.


janrykr
Contributor
Forum|alt.badge.img+6
  • Contributor
  • December 8, 2023

Has anyone gotten this to work? @lizatsafe​ 

I am trying to overwrite the xptitle tag on a jpg file but it is coming out blank in windows. I am guessing it has something to do with the encoding:

 

This is the value on the feature I am writing:

BThe writer sees the value just fine:imageHowever, after the file is written, the title shows blank when the properties are accessed in Windows:

CBut then, when the written file is opened in FME inspector, the value shows properly. However, the encoding shows as windows-1250.

imageI've tried AttributeEncoder to force it to utf-8 but it still does not show in windows.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings