A little introduction to image metadata

For the project I'm working on, I have to save numerous data in image files. The metadata I have to write can be in different languages and uses different encoding (mainly French, English, Spanish and Chinese).

A little history

There is mainly three formats to store data inside an image. The main one is called EXIF, its main goal is to store techical data about the image like the operture, is the flash was fired, the resolution, the iso settings and so on.

The second one is called IPTC. Its main goal was to store more subjective information about the file like its description, its author, copyright informations, etc.

IPTC is an old standard and is more or less replaced with XMP nowadays becuase of numerous restrictions on it (mainly no UTF8 and internationalisation support). (A later version named IPTC-IIM was created to correct some of the minor restrictions, but it was still far from perfect).

It is now more or less replaced with XMP. XMP is based on XML and uses the Dublin Core tags. It is the future of metadatas because its structure allows it to be extended.

And now, the problems

The problem is that with this three formats, it is quite difficult to know where to store or read the information we want. Additionnaly the XMP support is not very mainstrean on the software, even Adobe (creator of the XMP format) does not support it totally accross its products.

A Metadata Working Group had been formed to tell all the good people of Metadata-land what to do when faced with an image filled with metadatas. They wrote a recommendation guide telling us how to handle reconciliation (a same information is stored in more than one format, but with different values) and make our software the most compatible with existing software.

What about me ?

That's when I can talk about me again. I'm working on a project where I have to read a full database of images, parse their metadatas, store them in a database, and build an interface to search accross the database based on criterias like keywords, author, etc.

I also have to handle the web side of this and allow for easy creation of thumbnails, large and medium version with metadatas correctly written inside the file.

The admin panel should also allow anyone to modify one file metadata and rewrite it back into the file as well as inside the database.

This is kind of a big project for me, it's been 2.5 months that I'm on it and I had to learn everything from scrath : all the historical stuff, format specs, recommendation as well as Coldfusion -the language the app is built on-

I've learn a lot until now and I still have 15 more days to finish it. The main app is almost finished (I just have to polish on some edge cases) and then I'll have to integrate it in the existing admin panel.


Tags : #metadatas #iptc #image #xmp #exif #coldfusion

Want to add something ? Feel free to get in touch on Twitter : @pixelastic

Search