JFIF-Dump
Read and dump structure of a jpeg file.
This crate can be used as a library or as a command line utility.
Installation
$ cargo install jfifdump
Usage
$ jfifdump image.jpeg
Command-line options
USAGE:
jfifdump [FLAGS] [OPTIONS] <INPUT>
FLAGS:
-v, --verbose Make output more verbose
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-f, --format <FORMAT> Output format [default: text] [possible values: text, json]
ARGS:
<INPUT> Jpeg file to use
Using jfifdump as a library
To use jfifdump as a library add the following to your Cargo.toml dependencies:
= "0.2"
Example: Print image dimensions
use ;
use File;
use BufReader;
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in jfifdump by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.