Page 1 of 1

Truncate carved JPEG files to the correct size

Posted: April 29th, 2016, 10:42
by SOSdonnees
Hi,

I had to recover JPEG files from unallocated space on a drive formatted HFS+.

The software that I used is unable to compute correctly the size of many pictures, which get an absurd file size (tens or hundred of megabytes).

I would like to know if there is some post processing tool (preferably free or cheap), which could do batch processing of all JPEG pictures in a folder and truncate them to their correct size, but without processing the image (--the bitmap--) itself to avoid any loss due to JPEG compression when the file is saved.

Thanks.

Re: Truncate carved JPEG files to the correct size

Posted: April 29th, 2016, 17:13
by fzabkar
ISTM that you could handle most JFIF files by using a freeware binary stream editor to search for the EOI (End of Image) marker (0xFF 0xD9) at the end of the file. It would be trivial to set up a batch routine to automatically process complete directories.