Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Exif Tags

Tags:

exif

I am using exiv2 to manipulate metadata in a jpeg file. I need to write more information related to image processing into the metadata. Is is possible to create Custom Exif tags other than the standard ones?

like image 939
Senan Avatar asked May 31 '12 12:05

Senan


People also ask

Can you add your own EXIF parameters?

EXIF key-value pairs are called tags, and each tag can contain either a string or numeric value. There are dozens of tags in the current EXIF standard (version 2.32), and anyone — from smartphone and camera manufacturers to photographers — is free to add their own.

How do I get EXIF tags?

On a Windows PC using File Explorer right-click on the file you want to see the data for. You will see a window pop up with various options. Click on Properties and then on Details. This will bring up the EXIF data for that photo.

How do I use EXIF tags?

Every photo you upload will have a shortcode that you can paste underneath it to display all of the EXIF data. This is automatically added, so all you really need to do is upload a photo and copy & paste the shortcode. Plus, you can include a Google Map to show others where you were when taking the picture.


2 Answers

From http://www.exif.org/Exif2-2.PDF:

D. Tags Relating to User Information

MakerNote
A tag for manufacturers of Exif writers to record any desired information. The contents are up to the manufacturer, but this tag should not be used for any other than its intended purpose.
Tag = 37500 (927C.H)
Type = UNDEFINED
Count = Any
Default = none

UserComment
A tag for Exif users to write keywords or comments on the image besides those in ImageDescription, and without the character code limitations of the ImageDescription tag.
Tag = 37510 (9286.H)
Type = UNDEFINED
Count = Any
Default = none

exiv2 supports MakerNote tags: http://dev.exiv2.org/projects/exiv2/wiki/How_to_add_support_for_a_new_makernote

If you don't want to do this, you can use UserComment: http://www.exiv2.org/doc/exifcomment_8cpp-example.html

like image 58
Peter Bagyinszki Avatar answered Sep 19 '22 13:09

Peter Bagyinszki


A better way to have custom metadata is by using Adobe XMP with a custom namespace.

like image 22
Yoav Avatar answered Sep 19 '22 13:09

Yoav