mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 00:21:33 +00:00
Each 16-bit ink sample of an opaque CMYK TIFF, chunky or planar, is reduced to the display's 8 bits as round(s * 255 / 65535), the rescaling the PNG specification gives (section 13.12), where it was cut to its high byte. An ink of 200 out of 65535 showed as none, and 0x8100 showed one level too dark. The alpha path already rounds this way. The stored image keeps its 16-bit samples.