mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
When a .ai file, or an EPS with editing data, opened from its editing data, the reader converted each embedded 8-bit CMYK image to RGB and stored it as a PNG, so the document lost the image's ink amounts. When the same .ai opens from its PDF part, the PDF importer keeps them in a CMYK TIFF. The reader now stores those samples with ImageBlob::cmyk_tiff, as the PDF importer does (crates/pdf/src/import_image.rs). An alpha channel that hides part of the image becomes the image's opacity mask, a grayscale image over it, as in PDF import. Grayscale, RGB and 1-bit images still open as RGBA PNGs. Docs: docs/file-format-parity.md, docs/target-app-parity.md.