17 releases

0.5.5 Oct 22, 2022
0.5.4 Mar 26, 2021
0.5.3 Jan 5, 2021
0.5.2 Aug 7, 2020
0.1.0 Dec 31, 2016

#8 in Images

Download history 23183/week @ 2023-12-23 68579/week @ 2023-12-30 88631/week @ 2024-01-06 46445/week @ 2024-01-13 28746/week @ 2024-01-20 30116/week @ 2024-01-27 37062/week @ 2024-02-03 49527/week @ 2024-02-10 31214/week @ 2024-02-17 43229/week @ 2024-02-24 40777/week @ 2024-03-02 41187/week @ 2024-03-09 41923/week @ 2024-03-16 36402/week @ 2024-03-23 39281/week @ 2024-03-30 29516/week @ 2024-04-06

154,054 downloads per month
Used in 84 crates (42 directly)

BSD-2-Clause

230KB
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
  • WebP

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 = "x.y.z"

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
  • WebP Container Specification, committed on 2018-04-20

Dependencies