Exif field question

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Nikolaus Riehm
Junior Member
Junior Member
Posts: 12
Joined: 2004-02-18, 21:20 UTC

Exif field question

Post by *Nikolaus Riehm »

I need to rename a bunch of files including an Exif field value that I can't reach with TC or the jpg-comment WDX (version 2.3.0.4). In IrfanView this filed has the label "Image Number" and apparently stores a consecutive number representing the number of images shooten so far (I guess the camera derives its image file name from this field). It seems to be a maker-specific field (it's a Canon PowerShot A610) - how can I use this field in TC?

Regards, Niko
Nikolaus Riehm
Junior Member
Junior Member
Posts: 12
Joined: 2004-02-18, 21:20 UTC

Post by *Nikolaus Riehm »

Here is an example of EXIF data from a Canon IXUS where the filed is listed under "Maker Note (Canon)" > Image Number / Tag 008 as well as noted under "0xc Camera serial number" in the documentation about the EXIF Makernote of Canon by David Burren.

But how can I use this data to extract the right value with the jpg-comment WDX?

TIA, Niko
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

With jpg-comment.wdx you can use all fields, which are provided by Exiv2. See the metadata reference tables on http://www.exiv2.org/metadata.html.
Exiv2's (and ExifTool's) name for the field "Image Number" is "FileNumber". Just define an appropriate key in section "[Metadata]" of <jpg-comment.ini>.
Example:

Code: Select all

[Metadata]
45=8|Image Number|Exif.Canon.FileNumber
Notes:
"45": Set an unused key number here
"8": That will define your new plugin field "Image Number" as ft_string. Try "2" (ft_numeric_64), if ft_string representation doesn't meet your expectations (e.g. for sorting)

Now (after reloading jpg-comment.wdx) you will have a new field "Image Number" available with jpg-comment plugin.
Grüße, van Dusen (#24722)
Nikolaus Riehm
Junior Member
Junior Member
Posts: 12
Joined: 2004-02-18, 21:20 UTC

Post by *Nikolaus Riehm »

van Dusen wrote:

Code: Select all

45=8|Image Number|Exif.Canon.FileNumber
All done! Works perfect with ft_string definition and with a multi renaming string of "IMG_[=jpg-comment.Image Number:4-]" all the original file names are back again. Many thanks! :)
Cheers, Niko
Post Reply