FLIF-hub / FLIF

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

Support custom channels #48

Open bobobo1618 opened 8 years ago

bobobo1618 commented 8 years ago

Basically a continuation of https://github.com/jonsneyers/FLIF/issues/37#issuecomment-145675273.

It'd be nice if FLIF supported weird things like RGGB as well as RGB and RGBA.

mkadunc commented 8 years ago

It would be even nicer if it could support an arbitrary number of up-to-64-bit channels. Float32 and Float64 would be useful, too

jonsneyers commented 8 years ago

https://github.com/FLIF-hub/FLIF/commit/938a89fc4405f6ac90626e35d8faeaf6dd448e33 added some basic RGGB support. The script raw2flif gives a method to convert camera raw files to FLIF, perhaps in a lossless way. You need dcraw to extract the raw RGGB data and exiv2 to extract the metadata. Now the only thing I don't know how to do is how to reconstruct the original camera raw file from that...

bobobo1618 commented 8 years ago

Great! The best way to reconstruct the RAW is probably as Adobe DNG (a TIFF derivative with more embedded metadata and some lossless JPEG92 compression) or TIFF (but you'll either have to write an XMP (XML sidecar) or lose metadata).

psykauze commented 8 years ago

Support of multiple channels (maybe up to 256) should also be useful for multispectral images for infrared, ultraviolet, etc...

Applying a kind of YIQ transform might be useful for compression efficiency. :)