#tiff #jpeg #exif

kamadak-exif

Exif parsing library written in pure Rust

19 releases

0.6.1 Nov 6, 2024
0.5.5 Oct 22, 2022
0.5.4 Mar 26, 2021
0.5.2 Aug 7, 2020
0.1.0 Dec 31, 2016

#13 in Images

Download history 46714/week @ 2025-10-25 38542/week @ 2025-11-01 38598/week @ 2025-11-08 40016/week @ 2025-11-15 39453/week @ 2025-11-22 50095/week @ 2025-11-29 57211/week @ 2025-12-06 53729/week @ 2025-12-13 40856/week @ 2025-12-20 40063/week @ 2025-12-27 63331/week @ 2026-01-03 80866/week @ 2026-01-10 76585/week @ 2026-01-17 83049/week @ 2026-01-24 99483/week @ 2026-01-31 122284/week @ 2026-02-07

393,037 downloads per month
Used in 262 crates (93 directly)

BSD-2-Clause

240KB
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.60 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