ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: uher on July 08, 2024, 11:44:48 AM

Title: Cannot change exif-values anew when tey have been set with an older version
Post by: uher on July 08, 2024, 11:44:48 AM
In the past I have set some exif-values using version 12.70. When I now try to change them again with a newer version (I have tried 12.84 or 12.87) I always get following error:
    Error: [minor] Error copying hidden data - <filename>
    0 image files updated
    1 files weren't updated due to errors

If I switch back to the older version 12.70, then all works as expected, no errors.

So what is going wrong?

Kind regards
Ulrich Herrmann
Title: Re: Cannot change exif-values anew when tey have been set with an older version
Post by: StarGeek on July 08, 2024, 12:35:17 PM
What kind of file is it and can you share a sample file?  No way for us to know what's wrong if we can't actually look at it.

Looking at the version history, it might be because of Version 12.72 (https://exiftool.sourceforge.net/history.html#v12.72), which says

QuoteFixed writing of JPG/ARW images from some newer Sony models to preserve HiddenData
Title: Re: Cannot change exif-values anew when tey have been set with an older version
Post by: Phil Harvey on July 09, 2024, 06:12:29 AM
Hi Ulrich,

Versions before 12.72 didn't handle the hidden data properly.  If you used an older version to edit an ARW file then the hidden data would be lost.  I don't know what this data is for, and I haven't seen any effect due to it being missing.  However, with 12.72 or later you will need to add the -m option to ignore the minor warning to be able to write these files.

- Phil
Title: Re: Cannot change exif-values anew when tey have been set with an older version
Post by: uher on July 09, 2024, 12:04:41 PM
Thank you for your answers. The -m option did it, the value is written, but I still get an error-message. The output now is:
    Warning: Error copying hidden data - <filename>
    1 image files updated

The warning is not suppressed with the -m option?

Some additional information:
The image-file is an arw-file from a Sony camera (Alpha7R5).
My OS is Windows11, newest version.
Title: Re: Cannot change exif-values anew when tey have been set with an older version
Post by: Phil Harvey on July 10, 2024, 06:48:43 AM
The -m option downgrades minor errors to warnings.  The warning may be suppressed using -q -q or via the API NoWarning (https://exiftool.org/ExifTool.html#NoWarning) option.

- Phil