Image-ExifTool - Re: Aliases .. some thoughts

Posted on Thu May 31 21:38:26 2007 by exiftool in response to 5284 (See the whole thread of 4)
Re: Aliases .. some thoughts
Hi Mark,

I think I understand at least some of what you are suggesting:

1. Use aliases to return a single value from a list of possible locations

This is in fact a common purpose of the Composite tags. So adding a user-defined Composite tag can give you exactly this functionality.

2. Be able to use multiple aliases in a single invocation and identify the values returned without knowing the contents of ExifTool_config

I assume you mean from the command line (since doing this via the API is easy.) One way to do this is with something like this (using the -common and -canon aliases for example):

> exiftool -common -xxx -canon -f image.jpg ALIAS1: - FileName: a.jpg FileSize: 384 kB Model: Caplio 500SE DateTimeOriginal: 2007:05:23 14:30:09 ImageSize: 1280x960 Quality: - FocalLength: 5.8mm ShutterSpeed: 1/36 Aperture: 2.5 ISO: 248 WhiteBalance: Auto Flash: Off ALIAS2: - FileName: a.jpg Model: Caplio 500SE DateTimeOriginal: 2007:05:23 14:30:09 ShootingMode: - ShutterSpeed: 1/36 Aperture: 2.5 MeteringMode: Multi-segment ExposureCompensation: 0 ISO: 248 Lens: - FocalLength: 5.8mm ImageSize: 1280x960 Quality: - FlashOn: - FlashType: - ConditionalFEC: - RedEyeReduction: - ShutterCurtainHack: - WhiteBalance: Auto FocusMode: - Contrast: - Sharpness: Normal Saturation: High ColorTone: - FileSize: 384 kB FileNumber: - DriveMode: - OwnerName: - SerialNumber: -

Here you can see which tags belong to which aliases because I have asked for the non-existent ALIAS1 and ALIAS2 tags. With the -f option, all requested tags are returned, and missing values are indicated by "-".

Does this do what you wanted?

- Phil
Direct Responses: 5288 | 5291 | Write a response