mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 23:05:39 +00:00
An image in a four-component ICCBased color space opened with its ink amounts but without the profile its color space holds, so PDF export could not write it in that profile again. - The profile is read from the color space stream (at most 16 MiB) and kept when it is a well-formed CMYK profile. A CMYK TIFF carries it as tag 34675; a CMYK JPEG kept as it is carries it in ICC_PROFILE APP2 segments in place of its own, with its compressed data unchanged, and one whose segments cannot hold it is stored as a CMYK TIFF. - jpeg_with_icc passes over fill bytes (0xFF before a marker, ITU T.81 B.1.1.2) and leaves them out of the output. - A malformed, non-CMYK or larger profile leaves a decoded image's TIFF untagged and a kept JPEG as it is. DeviceCMYK and DeviceN images stay untagged. - A CMYK TIFF's tag 34675 is read up to 16 MiB; before, a 4 MiB profile was read back and a 16 MiB one was not. The comments of tiff_icc_profile and source_icc give that limit.