mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 22:33:08 +00:00
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.