andrewcb / jfifextract

A program for extracting probable JPEG files from a file (such as the image of a corrupted memory card). Written in C using mmap(2) for speed.

Home Page:http://dev.null.org/code/jfifextract/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jfifextract is a program which goes through a block of data (such as the image of a memory card or disk), finds spans that look like JPEG/JFIF image files and extracts them to files in a user-specified directory. It was developed to aid in recovering photos from a corrupted memory card. jfifextract uses memory-mapped I/O, making it reasonably efficient in handling large volume images. It should compile on any modern POSIX machine, though has only been tested on Linux.

jfifextract accepts a number of options: 
  -o is used to specify the output directory into which recovered files are written. 
  -d tells jfifextract not to write any files, but only to report on JFIF-like spans found. 
  -v tells it to print messages as it writes files.

jfifextract is a very primitive quick-and-dirty hack. It uses next to no knowledge of the JFIF/JPEG image format (it defines a "JFIF file" as anything between two magic numbers as found at the start of a JFIF file).

About

A program for extracting probable JPEG files from a file (such as the image of a corrupted memory card). Written in C using mmap(2) for speed.

http://dev.null.org/code/jfifextract/


Languages

Language:C 100.0%