Andrew Champion d510a9f4ab Strictly handle expected tag value types
Resolve several TODOs where tag values were cast from u32 without checks
by providing generic methods that error when the value fails casting to
the desired type. In addition to being more correct, this simplifies and
shortens decoding logic.

Remove `find_tag_u32` and `find_tag_u32_vec` as they are now redundant
and a GitHub code search found no usages outside copies of
`image-tiff`.
2019-12-21 15:57:24 +00:00
2019-12-21 15:12:25 +00:00
2018-03-12 18:26:44 +01:00
2019-12-21 15:12:25 +00:00
2019-11-21 19:23:03 +01:00
2018-03-12 13:43:42 +01:00

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
  • 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), Gray(16)
BlackIsZero Gray(8), Gray(16)
RGB RGB(8), RGB(16), RGBA(8), RGBA(16)
RGBPalette
Mask
CMYK CMYK(8)
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
  • BigTIFF
S
Description
Fork of https://github.com/image-rs/image-tiff, modifying the tiff crate to be able to read RGBPalette tiffs.
Readme MIT
14 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 88.1%
C 11.5%
Shell 0.4%