Wednesday, March 24, 2010

First confirmed XMP in original images

I think I now have enough samples to conclude that Canon is embedding XMP into images directly from the camera. Currently the XMP contains only a single tag, "Rating", which has a value of 0 in all my samples. While I thought there was a chance that all of my samples had been modified by some Canon software utility which added the XMP, I have now obtained enough samples from different sources that I believe this is not the case. The samples I have with XMP are from the following PowerShot models: A3100IS, SD980IS, SD1400IS, SD3500IS and SX210IS.

This is significant because in the past the limitations of EXIF have forced camera manufacturers to store information in a proprietary format in images, limiting its usefulness. But now that manufacturers are embracing XMP there is a chance that some of this information could be put in a more useful format.

For instance, it would be GREAT if cameras like the Panasonic DMC-ZS7 stored its location information (Country, City, State, etc) in XMP. Currently this information is stored in the maker notes, which means it is unavailable to most software. (The only reasonable option with the maker note solution is to use ExifTool to copy the information to XMP, which is one of the very useful functions of ExifTool, but in an ideal world this would not be necessary.)

Monday, March 22, 2010

More web server stats

I spent some more time watching the ExifTool web server to see what was getting the most traffic. The most popular file is the "ExifTool Updates" RSS feed, which gets an average of about 2.3 hits per minute -- that's 100,000 hits per month (from more than 20,000 unique IP's). Due to the nature of RSS, I was worried about this file dominating our bandwidth, so I tried to keep it small (12 kB) and set its reload period to 90 minutes (for RSS readers that honour the TTL attribute). Good thing I did that.

Tuesday, March 16, 2010

ExifTool download statistics

I just checked the web server to see how many people are downloading exiftool. I am now getting more than 1000 downloads per day from the main server. This doesn't include all of the downloads from the various CPAN mirrors and other download sources (which all together could easily be another 1000 per day).

At this rate I could retire with a $40,000 per year salary if I just charged $0.05 per download.

But ExifTool is free.

Monday, March 1, 2010

Stupid Samsung SRW

Samsung has invented another TIFF-based RAW format called SRW (used by the NX10).

The idiot Samsung engineers haven't included any sort of file identifier to allow this type of file to be distinguised from a TIFF image. This means that software must rely on the file extension to be able to read or write this file properly. This really pisses me off. Will they never learn?!

Also, they have included no identifier in their maker notes, which again is not a good idea.

The best one can do to identify these images is to look for a SubIFD1 Compression value of 32770, but this can only be found after processing IFD0 and the SubIFD's.

It would be much better if the file included a signature after the TIFF header such the Canon CR2, or a different TIFF magic number like Olympus ORF.

[Edit - discovered more idiocy]

Another BLACK MARK against the Samsung engineers:

The SRW format stores the ThumbnailImage inside a SubIFD of IFD1 instead of directly in IFD1 as per the EXIF specification.

Why are they so stupid?

Monday, February 22, 2010

Production Leica S2

Well, support for the insane Leica S2 maker notes was finally added in the version of ExifTool that was released a few days ago. Adding this support was as painful as I had anticipated. As it turns out, images from the production model have all the same problems of the pre-production samples. The question about the funny 0x800 offset is explained by the fact that a different offset base is used for one maker note entry (coupled with lots of unnecessary padding to keep the value at a constant offset). Anyone who understands the TIFF IFD structure will realize how stupid this is -- one may draw their own conclusions about the level of understanding by Leica engineers.

Thursday, November 19, 2009

Leica S2 Fiasco

Yet again the JPEG 64kB segment-size limitations make life difficult for me.

Presumably to avoid this limitation, the new Leica S2 writes the complete maker notes (860kB of them) outside the EXIF segment, and instead writes them after the JPEG EOI. Needless to say, this complicates things for me yet again.

But there are other problems in the S2 maker notes that make me pray my samples are from a pre-production camera and that the format will be fixed in the production model. Many maker note values, including one offset, have a constant value of 0x0800. This can't be right. I will wait until I get some production samples before adding support for this camera.

Thursday, November 5, 2009

Software designed to make you feel stupid

Adobe LightRoom

The first time I tried to use Adobe LightRoom to edit metadata was frustrating to say the least. First I had to figure out how to import the image (why? the image was right there on my desktop!!), then I had to find the metadata panel (which is quite a challenge since it had scrolled down and out of view in one of the panes to the right). I didn't find this panel at first, so the "Metadata" menu entry drew my attention. Sounds good. That's what I want, right? However, this menu seems to deal only with a group of metadata presets, which complicated things since I just wanted to change a single picture. Oh well. Forge ahead. Editing the metadata presets seemed like the right thing to do. When I was done editing LR forced me to save the presets with a new name, which I didn't want to do, but I didn't have any choice, so I did it anyway. Then, the next obvious step was "Save Metadata to File", which didn't work. Darn. Presumably it didn't work because I needed to somehow select the presets that I had just saved, but how? I could see no entry in the menus to set the current metadata presets. At this point I seem to remember taking a time out and coming back to the problem another day. Eventually I was able to somehow change the presets and write my changes to the file, but right now for the life of me I can't figure out how I did this (I have LR open now and I'm trying to reproduce what I did). Oh wait. There it is. Right-click on the image and select the presets from the "Metadata Presets" menu item (the good ol' hidden menu to the rescue). No, wait. That didn't work. Try a splat-S for good luck. Hooray! Success! Finally.

Capture One

Yesterday I downloaded a copy of Capture One and tried to edit some metadata in an EIP (Capture One Enhanced Image Package RAW image). From my experience with LR, I guessed I would first have to figure out how to import the image. So I did this, which was confusing enough, but then for the life of me I couldn't see how to select the image once I had imported it. You would think it would be displayed somewhere in the library of images, but no. I couldn't find it. Finally after some searching on the hard disk I found it nested deep below a "Capture One" directory in my "Pictures" folder. OK, cool. Select the image in the browser pane from that location on the disk. At least the metadata pane is not hidden, so I click on an IPTC entry and try to change it. Nothing. Can't enter any text. Darn. Time to RTFM. The FM says that I must 1) import the image. Good. Done. Let's proceed. Then 2) click on the IPTC entry. Good. Done. What next? 3) Type in new value. Darn. Bummer. Tried that. The keyboard focus never changed. The nice picture in the FM shows a highlighted text entry field. Can't make that happen. Clicking a thousand times still doesn't bring it up. Try going back and re-importing different images to different locations. Now I have copies of images scattered across my hard disk and I still can't change any metadata. After about an hour of searching through the menus, clicking all the various tiny icons in the interface, and RTFM-ing, I finally give up. It just isn't worth it. I have to watch my blood pressure.

Sweet Irony

...and people complain about the ExifTool command line interface.