mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-11-01 00:48:49 -04:00
1-bit images with a color map are loaded as Indexed8, but their lines were copied packed: the first (width + 7) / 8 bytes (rounded up to an even number) of each line held packed bits read as indexes, and the rest of the line was not set, so it kept whatever the memory held (images are allocated without being initialized). The bits are now unpacked to one index per pixel. Added the read test pal1bit.ras, which fails without this change.
56 B
56 B