dropbox / lepton

Lepton is a tool and file format for losslessly compressing JPEGs by an average of 22%.
https://blogs.dropbox.com/tech/2016/07/lepton-image-compression-saving-22-losslessly-from-images-at-15mbs/
Apache License 2.0
5.01k stars 355 forks source link

Output format stability #43

Closed pstibrany closed 7 years ago

pstibrany commented 8 years ago

Is the lepton output format stable? For example packJPG says "Compressed PJG files are not compatible between different packJPG versions." What is the status in lepton? Can this be documented in README please?

Thanks.

danielrh commented 8 years ago

We definitely will need for newer versions to be able to decode older data, since we have a lot of data that has already been encoded. We may choose to add features and provide a way for the decoder to understand both versions. Old decoders may not understand new versions of lepton

romiras commented 8 years ago

You can choose RIFF (or even RF64) as container, similarly as WebP uses it.

danielrh commented 8 years ago

The current format has versioning and some feature flags builtin... I think it should be fine to keep it. There's really no value in adding things like metadata into lepton. Lepton is supposed to merely reflect the original file with as little room for creativity as possible.

pstibrany commented 8 years ago

I'm perfectly happy to use whatever format you think is the best, as long as lepton can decode it back bit-to-bit to original file :) Thanks for explaining your thinking behind format versions compatibility.