EXIF and XMP support for Gallery

bgelb

Joined: 2004-01-27
Posts: 1
Posted: Tue, 2004-01-27 21:53

I've recently started using Photoshop CS and Canon RAW file format for my digital photos. When I use Photoshop to save the RAW files as JPEG, it embeds the EXIF information in some other format called XMP.

I'm not intimately familiar with the particulars of either format, but the inability to see the detailed photo properties was driving me nuts. I've found a program called ExifTool which will output in the same format as jhead (or at least close enough that Gallery will get along with it) but it supports XMP formatted data in addition to EXIF.

I've created a script called exiftool.sh like the following:

#!/bin/sh
/path/to/exiftool/exiftool -canon -ExposureProgram $1

which I put in the $gallery->app->use_exif = "" variable in config.php. The -canon and -ExposureProgram options just set which image parameters ExifTool outputs, since there are several that don't exist or aren't terribly applicable. The ability to customize the displayed parameters is nice.

Bottom line, however, is that it DOES work quite well, and I can see the photo data, even when its embedded in XMP.

ExifTool is available at http://owl.phy.queensu.ca/~phil/exiftool/.

I hope this is helpful to some people!

-Ben

 
Terje-
Terje-'s picture

Joined: 2004-01-20
Posts: 90
Posted: Thu, 2004-01-29 00:19

bgelb, excellent information! This is exactly what I needed!

However, I'm running win32/iis, so here is how I did it.
After getting perl&co up and running, all required modules installed, I changed the config.php $gallery->app->use_exif = "C:/inetpub/www.mrx.no/exif.vbs"; <- I tried using a bat file, but cmd.exe messed up the outout, so I decided to go with vbs (thanks h0bbel!).

the vbs code:
-snip-
Dim WshShell, oExec

Set objArgs = WScript.Arguments

Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("c:\perl\bin\perl.exe -w c:\inetpub\www.mrx.no\exiftool.pl -canon -ExposureProgram " & objArgs(0))
While Not oExec.StdOut.AtEndOfStream
strOutput = CStr(oExec.StdOut.ReadLine)
WScript.Echo strOutput
Wend
-snap-
Terje

 
dgennetten

Joined: 2005-07-06
Posts: 16
Posted: Wed, 2006-12-27 18:37

Some time back I submitted an XMP support request on the Gallery Wish List.

It turns out Vista now uses XMP and will likely drive it to become a defacto standard. With Vista's awesome Photo Gallery and it's rich tag support, investing in tags may finally make sense!

I'm wondering if the above methods would work for Vista-written XMP...

Douglas

 
svillinski

Joined: 2008-07-31
Posts: 5
Posted: Fri, 2008-08-01 16:14

I modified exifdescriptionoptions.inc to read the XMP Title from Windows Live Photo Gallery. It's a hack. Here's the reply from another thread on it: http://gallery.menalto.com/node/79110