ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: nyegere on April 06, 2019, 06:33:26 AM

Title: Corrupting Sony ARW Files
Post by: nyegere on April 06, 2019, 06:33:26 AM
Hello and thank you for this great tool. I use it a lot for tagging my photos.
Now I bought a new Sony Camera and get some problems with the files modified by exiftool, when I use the Sony Software that came with the camera (https://imagingedge.sony.net/de-de/ie-desktop.html). Each file modified by exiftool by any way is reported as "corrupt" by this software.

e.g.

exiftool.exe "-DateTimeOriginal>DateTimeOriginal" c:\tmp\DSC02003.ARW

Gets me this:

Warning: [minor] Entries in SubIFD were out of sequence. Fixed. - c:/tmp/DSC02003.ARW
    1 image files updated

Happens on different Versions of exiftool (tested 10.96 on Windows 10 / 10.10 on Ubuntu Linux)

This is a diff of the exiftool output on the original (right) and the modified (left) file.

File Name                       : DSC02003.ARW                | File Name                       : DSC02003.original.ARW
File Modification Date/Time     : 2019:04:06 12:08:36+02:00   | File Modification Date/Time     : 2019:03:28 14:04:02+01:00
File Access Date/Time           : 2019:04:06 12:11:28+02:00   | File Access Date/Time           : 2019:04:06 12:12:08+02:00
File Inode Change Date/Time     : 2019:04:06 12:08:36+02:00   | File Inode Change Date/Time     : 2019:04:06 12:09:28+02:00
Strip Offsets                   : 419002                      <
Rows Per Strip                  : 3672                        | Planar Configuration            : Chunky
Strip Byte Counts               : 20210688                    <
Planar Configuration            : Chunky                      <
                                                              > Strip Offsets                   : 425984
                                                              > Rows Per Strip                  : 3672
                                                              > Strip Byte Counts               : 20210688
Preview Image Start             : 138236                      | Preview Image Start             : 143522
SR2 Sub IFD Offset              : 76176                       | SR2 Sub IFD Offset              : 45354
SR2 Sub IFD Length              : 57008                       | SR2 Sub IFD Length              : 56958
Thumbnail Offset                : 133462                      | Thumbnail Offset                : 38854


If you wish I can send a 18MB sample File. Let me know, if you want the original or the modified or both.

Can I prevent exiftool from "fixing" the file?

Tnx

Nyegere
Title: Re: Corrupting Sony ARW Files
Post by: Hayo Baan on April 06, 2019, 06:40:13 AM
Looks like the files from your camera are indeed written badly and that exiftool did fix that (hence the warning message). It is not unheard of that cameras write invalid files. Sometimes a firmware update exists to fix this. You could check.
Title: Re: Corrupting Sony ARW Files
Post by: Phil Harvey on April 06, 2019, 06:55:54 AM
Hi Nyegere,

See the first item in the list of known problems (https://exiftool.org/index.html#problems).  Hopefully Sony will fix their software sometime, but I wouldn't hold my breath.

- Phil
Title: Re: Corrupting Sony ARW Files
Post by: nyegere on April 06, 2019, 07:02:09 AM
Installed RawTherapee and indeed it can handle the files. So blame seems to be on Sony!

Thanks a lot.

@Hayo Baan: No update available for the RX10IV  :(