Files
vectorcraft/crates/pdf
dotCooCoo 977024a4e9 PDF import: 64-bit desktop builds open images up to 4 GB and 2^30 pixels
A PDF, or a `.ai` read through its PDF part, was refused when one image
would decode to more than 1 GB, and the shared reader skipped images of
more than 2^28 pixels. On a 64-bit desktop build both limits are now 4 GB
and 2^30 pixels (`image_limits`), which `MAX_IMAGE_DECODED` and
`open_options()` share; 32-bit and web builds keep 1 GB and 2^28 pixels.
An image past the limit is refused with the same message.

An opaque image is encoded as an RGB PNG from its decoded samples instead
of building an alpha channel and an RGBA copy first.

Docs: docs/target-app-parity.md.

Part of #4366.
2026-11-16 20:16:38 -08:00
..