FLIF-hub / FLIF

Free Lossless Image Format
Other
3.72k stars 229 forks source link

Fix for non-power-of-2 maximum pixel values #533

Closed d11mshepcar closed 3 years ago

d11mshepcar commented 5 years ago

I've fixed a problem where the FLIF encoder creates malformed files if a non-power-of-2 bit-depth is specified in a PAM file header by forcing the bit depth to a power of 2 in Image::semi_init.