ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: pizzijw on February 07, 2020, 02:00:56 PM

Title: Using exiftool to process corrupt files
Post by: pizzijw on February 07, 2020, 02:00:56 PM
I have several files which appear to have been created by concatenating multiple images together. I've used the htmldump option to dump information from one of these files, and it shows significant information after the JPEG EOI.

Any suggestions on how I can get these pictures separated into their individual pictures? A naive approach let me to separating thumbnails from the image (that approach didn't use exiftool for any processing, just validating that the file was truly a JPEG).

Joe
Title: Re: Using exiftool to process corrupt files
Post by: Phil Harvey on February 07, 2020, 04:27:50 PM
Hi Joe,

With ExifTool 11.87 you will be able to do this to un-concatenate JPG images:

exiftool -trailer -b FILE > 1.jpg

exiftool -trailer -b 1.jpg > 2.jpg

exiftool -trailer -b 2.jpg > 3.jpg

etc...

- Phil
Title: Re: Using exiftool to process corrupt files
Post by: Jaff on February 08, 2020, 01:16:49 PM
You can use Multi Ripper
Sometimes I still use the old v2.20 (made in 1997) with desired results.  ;D

Another alternate solution is to use JPEGsnoop (https://www.impulseadventure.com/photo/jpeg-snoop.html) to extract found JPEGs.