FLIF-hub / FLIF

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

Create a FLIF file with a 256 color palette. #555

Closed QLaHPD closed 3 years ago

QLaHPD commented 4 years ago

How to create a FLIF file with a 256 color palette, where the input file will be a PNG with a 256 color (8 bit) palette? I tried to use the "--keep-palette" option, but the output file is always in RGBA format (32 bits).

bjorn3 commented 4 years ago

https://github.com/FLIF-hub/FLIF/pull/554

FLIF development has stopped since FLIF is superceded by FUIF and then again by JPEG XL (https://jpeg.org/jpegxl/index.html), which is based on a combination of Pik and FUIF. A royalty-free and open source reference implementation of JPEG XL is available on GitLab.

QLaHPD commented 4 years ago

So does this mean that in the latest version of FLIF it is not possible to use these settings?

bjorn3 commented 4 years ago

I don't now if the decoder can create PNG's with 256 color palette. FLIF itself should support color palette's though.

QLaHPD commented 4 years ago

Do you know if there is a way to set the bit depth in the current implementation (in the encoder)?

bjorn3 commented 4 years ago

I think the encoder just takes the bit depth of the input image.