#jpeg #extract #binary #image #command

bin+lib jpeg_extractor

Extract jpeg images from any binary via command line

3 releases

0.1.3 Nov 5, 2023
0.1.2 Nov 5, 2023
0.1.1 Sep 3, 2021
0.1.0 Sep 3, 2021

#238 in Images

28 downloads per month

MIT license

144 lines

Crates.io Rust


Extract JPEGs out of binary files from the command-line


cargo install jpeg_extractor


To use the tool, run the following command:

Usage: jpeg_extractor <binary_file_containing_jpegs> [--verbose]


  • <binary_file_containing_jpegs>: Specify the binary file from which you want to extract JPEG images.
  • --verbose (optional): Use this flag to enable verbose output.

How it works?

jpeg_extractor identifies JPEG images within binary files by looking for specific start and end signatures that are common to all JPEG types. The start signature is '0xFF, 0xD8, 0xFF, 0xE0', and the end signature is '0xFF, 0xD9'.


Currently jpeg_extractor only supports JPEGs with EXIF data.


If you would like to contribute to the development of jpeg_extractor, please check out CONTRIBUTING.md

No runtime deps