Skip to main content

MAX_SOURCE_IMAGE_PIXELS

Constant MAX_SOURCE_IMAGE_PIXELS 

Source
pub const MAX_SOURCE_IMAGE_PIXELS: u64 = _ /* 132_710_400u64 */;
Expand description

Most pixels the raster images inside one source may decode to, all of them together: four whole canvases of MAX_CANVAS_PIXELS. An SVG decodes every image it draws on each render (an image drawn twice, as through <use>, counts twice) and a Lottie animation decodes its image assets once, when it opens, and holds them; each image is also within check_canvas on its own. A source past it is refused.