14 releases

0.7.2 Apr 11, 2022
0.7.1 Sep 22, 2021
0.7.0 May 25, 2021
0.6.1 Dec 12, 2020
0.1.0 Jun 18, 2018
Download history 48132/week @ 2022-03-10 51243/week @ 2022-03-17 53259/week @ 2022-03-24 53767/week @ 2022-03-31 58462/week @ 2022-04-07 48403/week @ 2022-04-14 52739/week @ 2022-04-21 54123/week @ 2022-04-28 56669/week @ 2022-05-05 54356/week @ 2022-05-12 59074/week @ 2022-05-19 52519/week @ 2022-05-26 56542/week @ 2022-06-02 56088/week @ 2022-06-09 62211/week @ 2022-06-16 60998/week @ 2022-06-23

246,673 downloads per month
Used in 1,210 crates (6 directly)

MIT license

1.5MB
4.5K SLoC

image-tiff

Build Status Documentation Further crate info

TIFF decoding and encoding library in pure Rust

Supported

Features

  • Baseline spec (other than formats and tags listed below as not supported)
  • Multipage
  • BigTIFF
  • Incremental decoding

Formats

This table lists photometric interpretations and sample formats which are supported for encoding and decoding. The entries are ColorType variants for which sample bit depths are supported. Only samples where all bit depths are equal are currently supported. For example, RGB(8) means that the bit depth [8, 8, 8] is supported and will be interpreted as an 8 bit per channel RGB color type.

PhotometricInterpretation UINT Format IEEEFP Format
WhiteIsZero Gray(8|16|32|64) Gray(32|64)
BlackIsZero Gray(8|16|32|64) Gray(32|64)
RGB RGB(8|16|32|64), RGBA(8|16|32|64) RGB(32|64), RGBA(32|64)
RGBPalette
Mask
CMYK CMYK(8|16|32|64) CMYK(32|64)
YCbCr
CIELab

Compressions

Decoding Encoding
None
LZW
Deflate
PackBits

Not yet supported

Formats and interpretations not listed above or with empty entries are unsupported.

  • Baseline tags
    • ExtraSamples
  • Extension tags

Fuzzing

This crate uses cargo-fuzz in order to test the image parser.

After installing it with cargo install cargo-fuzz on a nightly rustc, the fuzzing harness can be run with recommended settings using cargo fuzz run decode_image -snone -- -timeout=5.

Dependencies

~1MB
~11K SLoC