Corrupted ARW files. Now sure how to retrieve JPEG

Started by Thermy, March 11, 2023, 06:13:42 AM

Previous topic - Next topic

Thermy

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! :)

Phil Harvey

The file is completely corrupted, but there is a 1616x1080 preview image that may be extracted using my extract_preview script.  See this post for details.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Thermy

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.

Phil Harvey

Right.  This is because Win32::API is not installed.

Try the attached version of the script.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).