mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 07:42:42 +00:00
A gray or RGB TIFF that reached PDF export as a TIFF, for example in a native document or from a script, was decoded to 8-bit RGBA and written as DeviceRGB, which dropped the ICC profile of its tag 34675, its 16-bit samples and its gray color space. It is now written in an ICCBased color space holding that profile, as a tagged PNG is: gray stays gray, 16-bit samples stay 16-bit from PDF 1.5 on, and the alpha becomes a soft mask only when some pixel is not opaque. A gray or RGB image that the Compression settings resample or compress with JPEG keeps its source profile too, a PNG included. Pixels that the Output settings convert are written without it, and so is a profile whose color space differs from the samples'. CMYK images are unchanged.