mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-26 02:37:01 -06:00
The editing data reader sized each row of a 1-bit image as width × channels bits, padded to a whole byte, but read one bit per pixel and made the pixel gray from it. A 1-bit RGB or CMYK image came out as a black and white image of the wrong bits. When that made the layers differ from the page by more than 5%, the file opened from its PDF part instead, with a warning. The reader now takes channel c of pixel x from bit x × channels + c of the row, a set bit being the channel at full strength, and converts the samples as it converts 8-bit ones. 1-bit gray images read as before.