Skip to main content

MAX_PIXELS

Constant MAX_PIXELS 

Source
pub const MAX_PIXELS: usize = _ /* 268_435_456usize */;
Expand description

Maximum number of pixels (width * height) accepted by any decoder. Images whose declared dimensions exceed this limit are rejected with DecodeErrorKind::ImageTooLarge before any size-proportional allocation. 256 MiB / 1 byte-per-channel = 268_435_456 pixels.