#[non_exhaustive]pub struct TiffInfo {Show 21 fields
pub width: u32,
pub height: u32,
pub channels: u16,
pub bit_depth: u8,
pub color_type: ColorType,
pub is_float: bool,
pub is_signed: bool,
pub icc_profile: Option<Vec<u8>>,
pub exif: Option<Vec<u8>>,
pub xmp: Option<Vec<u8>>,
pub iptc: Option<Vec<u8>>,
pub resolution_unit: Option<u16>,
pub x_resolution: Option<(u32, u32)>,
pub y_resolution: Option<(u32, u32)>,
pub dpi: Option<(f64, f64)>,
pub orientation: Option<u16>,
pub compression: Option<u16>,
pub photometric: Option<u16>,
pub samples_per_pixel: Option<u16>,
pub page_count: Option<u32>,
pub page_name: Option<String>,
}Expand description
TIFF image metadata from decoding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.width: u32Image width in pixels.
height: u32Image height in pixels.
channels: u16Number of channels per pixel in the source.
bit_depth: u8Bits per channel in the source.
color_type: ColorTypeSource color type from the TIFF decoder.
is_float: boolWhether the source uses floating-point samples.
is_signed: boolWhether the source uses signed integer samples.
icc_profile: Option<Vec<u8>>ICC color profile (Tag 34675).
exif: Option<Vec<u8>>Raw EXIF sub-IFD bytes, re-serialized from the EXIF IFD (Tag 34665 pointer).
xmp: Option<Vec<u8>>XMP metadata (Tag 700).
iptc: Option<Vec<u8>>IPTC-NAA metadata (Tag 33723).
resolution_unit: Option<u16>Resolution unit (Tag 296): 1 = no unit, 2 = inch, 3 = centimeter.
x_resolution: Option<(u32, u32)>X resolution as a rational (numerator, denominator) (Tag 282).
y_resolution: Option<(u32, u32)>Y resolution as a rational (numerator, denominator) (Tag 283).
dpi: Option<(f64, f64)>DPI computed from resolution tags. Both values are in dots-per-inch
(centimeter resolution is converted). None if resolution unit is
absent or “no unit” (1).
orientation: Option<u16>EXIF orientation (Tag 274): values 1-8. None if not present.
compression: Option<u16>Compression method (Tag 259).
photometric: Option<u16>Photometric interpretation (Tag 262).
samples_per_pixel: Option<u16>Samples per pixel (Tag 277).
page_count: Option<u32>Number of IFDs (pages/frames) in the file.
page_name: Option<String>Page name (Tag 285). None if not present.