mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 21:17:48 +00:00
Open and Place store some images again instead of keeping their bytes: a photo turned by its orientation, a TIFF the image decoder reads, and a CMYK TIFF with one plane per ink. Those images lost the ICC profile their file embeds, and 16-bit samples were cut to 8 bits. - raster_image keeps gray and RGB samples at 8 or 16 bits in the stored PNG, with the gray or RGB profile in its iCCP chunk. A profile of another color space, such as the CMYK profile of a CMYK image read as RGB, is left out. A TIFF's profile is read with the tiff decoder, which reads it whatever the image's size. - stored_cmyk_tiff and turned_cmyk write CMYK8 or CMYK16 as the file has it, with the CMYK profile as TIFF tag 34675 (UNDEFINED). A CMYK JPEG's profile is put together from all its APP2 segments. - The docs/target-app-parity.md line on EXIF orientation says 8 or 16 bits, and a line after it describes the kept profile.