14 unstable releases (4 breaking)

0.5.2 Aug 7, 2020
0.5.1 Feb 15, 2020
0.5.0 Jan 26, 2020
0.4.0 Dec 22, 2019
0.1.0 Dec 31, 2016

#3 in Encoding

Download history 587/week @ 2020-06-09 1113/week @ 2020-06-16 894/week @ 2020-06-23 301/week @ 2020-06-30 516/week @ 2020-07-07 601/week @ 2020-07-14 678/week @ 2020-07-21 754/week @ 2020-07-28 863/week @ 2020-08-04 865/week @ 2020-08-11 771/week @ 2020-08-18 410/week @ 2020-08-25 562/week @ 2020-09-01 540/week @ 2020-09-08 670/week @ 2020-09-15 462/week @ 2020-09-22

2,678 downloads per month
Used in 10 crates (9 directly)

BSD-2-Clause

210KB
4.5K SLoC

Exif parsing library written in pure Rust

This is a pure-Rust library to parse Exif data. This library parses Exif attributes in a raw Exif data block. It can also read Exif data directly from some image formats.

Supported formats are:

  • TIFF and some RAW image formats based on it
  • JPEG
  • HEIF and coding-specific variations including HEIC and AVIF
  • PNG

Usage

Add a dependency entry to your Cargo.toml. Specify "kamadak-exif" if you use crates.io. The canonical name of this crate is "exif", but it is renamed on crates.io to avoid a naming conflict.

  [dependencies]
  kamadak-exif = "0.5"

Add the following to your crate root (before Rust 2018).

  extern crate exif;

Run "cargo doc" in the source directory to generate the API reference. It is also available online at https://docs.rs/kamadak-exif.

See examples directory for sample codes.

Dependencies

Rust 1.40 or later is required to build.

Standards

  • Exif Version 2.32
  • DCF Version 2.0 (Edition 2010)
  • TIFF Revision 6.0
  • ISO/IEC 14496-12:2015
  • ISO/IEC 23008-12:2017
  • PNG Specification, Version 1.2
  • Extensions to the PNG 1.2 Specification, version 1.5.0

Dependencies