SQZ – Low complexity, scalable lossy to lossless image compression
I'd like to share a little toy project of mine, a really simple image codec that can do lossy to full lossless image compression with complete scalability at a byte level granularity - you can compress an image just once, even fully losslessly if needed, and then get any lossy version possible by simply stopping decompression at any offset in the compressed data. This "encode onde, serve many" approach is especially interesting for providing downscaled low quality image previews (LQIP) in as tight a storage budget as possible, and then allowing seamless, transparent refinement as deemed…
What it does
In the maker’s words, at launch
I'd like to share a little toy project of mine, a really simple image codec that can do lossy to full lossless image compression with complete scalability at a byte level granularity - you can compress an image just once, even fully losslessly if needed, and then get any lossy version possible by simply stopping decompression at any offset in the compressed data. This "encode onde, serve many" approach is especially interesting for providing downscaled low quality image previews (LQIP) in as tight a storage budget as possible, and then allowing seamless, transparent refinement as deemed necessary, without reencoding or needing to store multiple lower quality/resolution versions of the same image. To better serve that purpose, the codec is tuned to provide as much detail as it can as soon as possible in the bitstream, so that downscaling will still produce sharp, good looking previews. Features: - Support for 8bbp grayscale images, and 3 internal colorspaces (YCoCg-R, Oklab, logl1) for color images - 5/3 integer reversible DWT, 4 possible scan orders based on different space-filling curves (raster, snake, Morton/Z-order and Hilbert) - No entropy coding, just bitplane significance coding using the Wavelet Difference Reduction (WDR) method, followed by progressive refinement Some sample images, comparison to JPEG-XL and previous discussion can be found at https://encode.su/threads/4183-SQZ-Low-complexity-scalable-l... Any feedback, suggestions or questions would be most welcome, thanks.
Does the same job
all alternatives →- IMImgsquash – My image compression website project2019 · github.com · ▲178
- TATrigrad, a novel image compression with interesting results2015 · ruarai.github.io · ▲175
- HHHiFiC – High-Fidelity Generative Image Compression – demo and paper2020 · hific.github.io · ▲281



More work this month
the category →


The app store for voice native apps that lives in your notch
Work · 28d ago · voiceos.com

The New Calendly▲211Handle all of the work before, during, and after meetings
Work · 17d ago · calendly.com
Launched alongside, January 2024
the whole month →



- IM
Life & fun · 2024 · sitinshade.com
