Skip to the Main Content

Note:These pages make extensive use of the latest XHTML and CSS Standards. They ought to look great in any standards-compliant modern browser. Unfortunately, they will probably look horrible in older browsers, like Netscape 4.x and IE 4.x. Moreover, many posts use MathML, which is, currently only supported in Mozilla. My best suggestion (and you will thank me when surfing an ever-increasing number of sites on the web which have been crafted to use the new standards) is to upgrade to the latest version of your browser. If that's not possible, consider moving to the Standards-compliant and open-source Mozilla browser.

July 21, 2003

When Metadata Goes Bad

Metadata is one of those buzzwords that cause some people to swoon, and others to grit their teeth whenever it is mentioned. But the subject of this post is prosaic, not ideological.

My online photo album runs on metadata. Digital photos contain two types of embedded metadata: EXIF data set by the camera (date/time the photo was taken, exposure settings, etc.), and IPTC info (caption, keywords, copyright info, etc.). My photo album is run by a set of perl scripts which create thumbnails, grab dates and captions from the embedded metadata and use these to build web pages. The whole setup is nice, but assumes that the metadata is “good”.

A few days ago, I got, via email, some pictures of my son at preschool. The pictures were lovely. Unfortunately, the embedded EXIF date/time data was bogus. And that would have fouled up my photo album.

Though many allow you to view it, none of the usual image manipulation tools would allow me to edit the EXIF data. That’s because the camera is machine and, unlike people, can be presumed to produce reliable metadata. Except … when it doesn’t.

I ended up editing the JPEG files in vi to set the date/time by hand. I later found out that there’s a commandline utilty called jhead that lets you modify the "DateTimeOriginal" field (tag 0x9003) in a somewhat more user-friendly way.

Evidently, this is not an uncommonly-needed feature…

Update (8/1/2003): GraphicConverter 4.8 (my digital photo manipulation program of choice) has been released. It now lets you set the EXIF date via a context menu.

Posted by distler at July 21, 2003 2:31 AM

TrackBack URL for this Entry:

0 Comments & 0 Trackbacks

Post a New Comment