ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: daylight54 on July 03, 2022, 12:10:10 AM

Title: OM-1 ORF file header corrupted
Post by: daylight54 on July 03, 2022, 12:10:10 AM
For some unknown reason, the new OM-1 has a different metadata header than the OM-D cameras. Running Exiftool on the OM-1 ORF files corrupts the file. I changed the original date-time and now the file can't be read by any of the photo editors I have. It would be great if you could not only fix this problem but also create a program that restores the header to the correct format. If I understood the headers (I can't figure out how to read them. I can see one item that I assume is the file name but I can't replace it since it is weird symbols) I could change them myself. Thanks!!!
Title: Re: OM-1 ORF file header corrupted
Post by: StarGeek on July 03, 2022, 11:36:33 AM
Can you provide a sample raw file to work with?  Not much can be done without having a file to look at.

Phil is currently away from the net, so it'll be a few days before he can look at this.
Title: Re: OM-1 ORF file header corrupted
Post by: daylight54 on July 03, 2022, 11:35:09 PM
Hmmm after further experimentation I found that although the headers do not match at all, a file whose AllDates I shifted still opened in photoshop. When I changed it with A Better Finder Attributes 7 (latest version) the header got corrupted. If I took the data from the ExifTool file down to where the A Better Finders Attributes 7 file doesn't match it exactly (see the rtf file in the dropbox link below) and replaced the code in the A Better Finder Attributes 7 file, the A Better Finder Attributes 7 file opened. However, both the ExifTool file and the A Better Finder Attributes 7 files do not match the original ORF file.

The files are too big to attach so here is a dropbox link to all of them
https://www.dropbox.com/sh/cgd87zvcyxfw217/AABkNvXofQmmf3hOUYm55Lxta?dl=0.[/url]

I am sorry this is so confusing but I am out of my element here.
Title: Re: OM-1 ORF file header corrupted
Post by: StarGeek on July 04, 2022, 02:07:03 AM
So are the exiftool files getting corrupted or not?

You can't expect an image with its metadata edited to exactly match one that isn't.  When exiftool edits a file, it will restructure the data more efficiently that the camera that originally wrote it.  See FAQ #13a (https://exiftool.org/faq.html#Q13) for details.
Title: Re: OM-1 ORF file header corrupted
Post by: daylight54 on July 06, 2022, 06:49:33 AM
I don't really know. That's the whole point. Was it updated for the OM-1?  I know they are different than the OM-D ones. If it was updated then I need to tell A Better Finder Attributes developer.
Title: Re: OM-1 ORF file header corrupted
Post by: StarGeek on July 06, 2022, 10:03:06 AM
I don't have access to Lightroom, so I can't check with that.  The version of Adobe Bridge on my computer couldn't read either the exiftool edited or original file, but it was severely out of date.  After updating Bridge, it could read both the original and exiftool edited files, but not the other one.

This doesn't seem to be an exiftool problem.
Title: Re: OM-1 ORF file header corrupted
Post by: Phil Harvey on July 06, 2022, 10:19:19 AM
> exiftool ~/Desktop/ -ext orf -validate -warning
======== /Users/phil/Desktop/Original.ORF
Validate                        : 6 Warnings (all minor)
Warning                         : [minor] Non-standard IFD0 tag 0x4746 Rating
Warning                         : [minor] Odd offset for ExifIFD tag 0x9003 DateTimeOriginal
Warning                         : [minor] Odd offset for ExifIFD tag 0x9004 CreateDate
Warning                         : [minor] Odd offset for ExifIFD tag 0x9010 OffsetTime
Warning                         : [minor] Odd offset for ExifIFD tag 0x9012 OffsetTimeDigitized
Warning                         : [minor] Odd offset for ExifIFD tag 0xa302 CFAPattern
======== /Users/phil/Desktop/ExifTool file.ORF
Validate                        : 1 Warning (minor)
Warning                         : [minor] Non-standard IFD0 tag 0x4746 Rating
======== /Users/phil/Desktop/A Better Finder Attributes File.ORF
Validate                        : 5 Warnings (all minor)
Warning                         : [minor] Non-standard IFD0 tag 0x4746 Rating
Warning                         : [minor] Bad format (41125) for EquipmentIFD entry 0
Warning                         : [minor] Bad format (256) for CameraSettingsIFD entry 0
Warning                         : [minor] Bad format (65535) for RawDevelopmentIFD entry 0
Warning                         : [minor] Bad format (21) for FocusInfoIFD entry 0
    1 directories scanned
    3 image files read


It looks to me as if A Better Finder Attributes corrupted some Olympus metadata.  ExifTool fixed some minor problems in the file it wrote.

- Phil