Main Menu

Recent posts

#61
Developers / Re: Exif and a duplicate tag I...
Last post by BarryIptcStan - July 03, 2025, 04:00:13 PM
Thank you for the advice!

However, I can't find an `InteropVersion` in the specification. Is that a widely used, vendored private tag, or was it forgotten in v3.0?

ExifTool defines it in its "HTML" table as being excluded from the Exif v3.0 spec. In that case, how do you differentiate between it and `GPSLatitude`? For ExifTool, it's defined in another table, "GPS". To my knowledge, these "groups" are only seperated for better organization within the standard. However, there being duplicate tags suggests that each group is actually an individual IFD..!

The problem I'm then facing might be better formatted as a question:

  • If an IFD is intended to describe only a subset of tags alongside which it is defined,
  • and IFDs do not specify an identifier to say which subset it represents,
  • how do you tell which IFD contains which set of tags?

In other words, if IFDs are, in practice, separated by group, how can you tell which IFD is which when parsing a file? I can imagine some heuristics used for this, but that sounds kinda 'leaky' for private tags. That would also mean that TIFFs would need to use "subfiles" to provide certain tags.

If they aren't usually separated by group, then how can you tell the duplicate pairs apart during parsing?

I very much appreciate your expertise - thank you so much for replying! :)
#62
The "exiftool" Application / Re: Add thumbnail and preview ...
Last post by Phil Harvey - July 03, 2025, 03:37:56 PM
Hi Hans,

We've seen this before.

The file does have a PreviewImage and ThumbnailImage, but they are some sort of compressed data and not a stand-alone image format (like JPEG).  I'm guessing that they could be valid, but it seems that your software doesn't know how to display them.

- Phil
#63
The "exiftool" Application / Re: Add thumbnail and preview ...
Last post by Hans Kraus - July 03, 2025, 03:22:12 PM
Hi, thanks for your interest. The requested files are prepared for download under https://jottacloud.com/s/1169adcc51758064d6f9d81adc709cbef13
The problem I have: if I set the camera - a Canon EOS R5 Mark II - up to record both CR3 raw files and JPGs everything works. But when I record only CR3 raws they are pale and pink displayed, see Screenshot of Irfanview. This happens with image viewers, with explorer thumbnails, other tools which display thumbnails and so on. From one of the tool creators I got the reply that neither thumbnails nor previews are embedded. Therefore my question.
Searching in the net I found postings of some people who have also this pale and pink problem, but no solution.
This doesn't happen with CR3 files generated by my Canon EOS R7.
The system is a Windows 11 pc.
Kind regards, Hans
#64
Developers / Re: Exif and a duplicate tag I...
Last post by Phil Harvey - July 03, 2025, 02:46:36 PM
Tag ID 1 in the InteropIFD is InteroperabilityIndex, but in the GPSIFD it is GPSLatitudeRef.

But you missed InteropVersion and GPSLatitude which both have tag ID 2.

The InteropIFD tags carry important color space information.

- Phil
#65
Developers / Exif and a duplicate tag ID (I...
Last post by BarryIptcStan - July 03, 2025, 02:42:01 PM
Hey there! I made an enumeration over all defined Exif tags in the Exif 3.0 standard. (available for download through CIPA here)

However, it seems that `GPSLatitudeRef` and `InteroperabilityIndex` share the same tag ID: `1`.

Rust takes notice:

barrett@farts ~/D/p/r/raves_metadata (feat/exif) [101]> cargo check
    Checking log v0.4.27
    Checking raves_metadata_types v0.1.0 (/home/barrett/Documents/projects/raves-project/raves_metadata/raves_metadata_types)
error[E0081]: discriminant value `1` assigned more than once
   --> raves_metadata_types/src/exif/parse_table.rs:17:9
    |
17  |           pub enum KnownField {
    |           ^^^^^^^^^^^^^^^^^^^
...
101 | / create_known_fields_enum! {
102 | |     /*
103 | |      *
104 | |      *
...   |
794 | |     GPSLatitudeRef = 1 => {
    | |                      - `1` assigned here
...   |
971 | |     InteroperabilityIndex = 1 => {
    | |                             - `1` assigned here
...   |
975 | |    },
976 | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `create_known_fields_enum` (in Nightly builds, run with -Z macro-backtrace for more info)

In your view, should I omit the newer `InteroperabilityIndex` tag? Or, should I add special handling for ID = 1 (determining which one to yield based on count, either 1 or 2)?

One .NET library said they don't use it, but I'm not sure if that excuse is quite sufficient for a metadata parsing library...

I'd appreciate any advice you could give! ;D
#66
The "exiftool" Application / Re: Add thumbnail and preview ...
Last post by Phil Harvey - July 03, 2025, 02:05:01 PM
Currently ExifTool can't write these to CR3 files.  But I don't think I have any CR3 samples without both PreviewImage and ThumbnailImage, which I'm guessing is why blue-j suggested uploading a sample.

- Phil
#67
The "exiftool" Application / Re: Add thumbnail and preview ...
Last post by blue-j - July 03, 2025, 01:56:40 PM
hey hans, can you share a sample? - J
#68
The "exiftool" Application / Add thumbnail and preview imag...
Last post by Hans Kraus - July 03, 2025, 12:05:36 PM
Hi,
I have a lot of CR3 files without embedded thumbnail and preview images. I tried:
exiftool "-thumbnailimage<=thumb8486.jpg" "-previewimage<=preview8486.jpg" 8486.CR3but got:
    0 image files updated
    1 image files unchanged
Are these commands not available/valid for CR3 files?
Regards, Hans
#69
Newbies / Re: custom tag
Last post by Phil Harvey - July 03, 2025, 06:34:31 AM
If you check the XMP, the property name is "APP".  ExifTool will normalize the case to "App" when reading unless you also use the config file when reading back the tag.

- Phil
#70
Bug Reports / Feature Requests / Re: Bug with -fileNUM option
Last post by ywzc - July 03, 2025, 04:53:10 AM
Version 13.32 works as expected. Great, thank you.