ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Thermy on March 11, 2023, 06:13:42 AM

Title: Corrupted ARW files. Now sure how to retrieve JPEG
Post by: Thermy on March 11, 2023, 06:13:42 AM
Hi!

I unfortunately corrupted my SD card containing RAW ARW files, I have formatted the SD card and recovered the corrupt ARW files. When I use Exiftool on the recovered files I get:

C:\Users\B>exiftool C:\
ExifTool Version Number         : 12.57
File Name                       : DSC00001.ARW
Directory                       : C:
File Size                       : 49 MB
File Modification Date/Time     : 2023:03:09 18:20:10+10:30
File Access Date/Time           : 2023:03:11 21:27:35+10:30
File Creation Date/Time         : 2023:03:11 21:22:46+10:30
File Permissions                : -rw-rw-rw-
Error                           : File format error

The corrupt file in question can be found https://www.dropbox.com/s/xclcx1q4v0fnzux/DSC00001.ARW?dl=0

Standard ARW from my camera can be found https://www.dropbox.com/s/fvd8k8ef8m7iw84/DSC02812.ARW?dl=0

As I am a newbie in these situations, any guidance in the best direction would be appreciated, thank you! :)
Title: Re: Corrupted ARW files. Now sure how to retrieve JPEG
Post by: Phil Harvey on March 11, 2023, 08:31:18 AM
The file is completely corrupted, but there is a 1616x1080 preview image that may be extracted using my extract_preview script.  See this post (https://exiftool.org/forum/index.php?topic=4172.msg19805#msg19805) for details.

- Phil
Title: Re: Corrupted ARW files. Now sure how to retrieve JPEG
Post by: Thermy on March 12, 2023, 09:44:55 PM
Hi Phil

Thank you for your help so far!

I have followed the instructions but get the result:

 C:\Users\B\Desktop\Image-ExifTool-12.57>perl extract_preview C:\Users\B\Desktop\recovery\DSC00001.ARW
[extract_preview version 1.04]
===== C:\Users\B\Desktop\recovery\DSC00001.ARW
Found JPEG (160x120 pixels, 6140 bytes at offset 30451952)
(ignored due to Install Win32::API for proper handling of Windows file times)
Found JPEG (1616x1080 pixels, 293016 bytes at offset 30544034)
(ignored due to Install Win32::API for proper handling of Windows file times)
----- Summary
    1 files processed
    0 previews created:
Done.
Title: Re: Corrupted ARW files. Now sure how to retrieve JPEG
Post by: Phil Harvey on March 13, 2023, 09:52:01 AM
Right.  This is because Win32::API is not installed.

Try the attached version of the script.

- Phil