Main Menu

Output is .dat

Started by PedroMN, September 28, 2023, 05:29:31 AM

Previous topic - Next topic

PedroMN

Hi, I am trying to recover an image with the following command:

exiftool -a -b -W %d%f_%t%-c.%s -preview:all P1280142.JPG

But the output returns me the correct thumbnail but the image is a .dat, I have tried changing the extension, converters and I can't get the correct image.
Any help would be appreciated. Thank you very much

StarGeek

The data in the PreviewImage tag is obviously not an actual jpeg, as would be normal for most cameras.  There really isn't much you can do unless someone can figure out what the data actually is.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

PedroMN

I have 3 other images that are damaged like the one in the post and I applied the command and was able to get correct images using the PreviewImage tag.
But with this one I have not been able to, and other paid software can fix it.
Could you recommend me something to see if I can recover it?

Phil Harvey

#3
This file has been modified by some other software, and the preview image has been lost.  The preview image pointer now points to an arbitrary location in the main JPG image data, and the resulting .dat file extracted by ExifTool is garbage.

- Phil

Edit:  ExifTool shows this warning if you try to extract the preview without the -W option:

> exiftool P1280142.JPG -previewimage
Warning: [minor] PreviewImage is not a valid JPEG image - P1280142.JPG
...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 ($).