sqp

Crates.iosqp
lib.rssqp
version0.1.1
sourcesrc
created_at2024-08-06 19:30:43.247158
updated_at2024-08-06 20:49:04.623167
descriptionThe squishiest image format!
homepage
repositoryhttps://github.com/Dangoware/sqp
max_upload_size
id1327661
size59,593
G2 (G2-Games)

documentation

README

SQP

SQP (SQuishy Picture Format) is an image format designed for ease of implementation and learning about compression and image formats while attaining a relatively good compression ratio. The general idea is to make something "good enough" while being simple, and also as a learning tool to learn about compression (mostly on my part). If you need an image format for general use, this is probably not it, go check out JPEG XL or AVIF.

This reference implementation fits in around 1000 lines of relatively simple Rust, while maintaining decent compression and decompression speeds.

Features

  • Lossless and lossy compression schemes
  • Support for various color formats (RGBA, Grayscale, etc.)
  • Decent compression ratios, the lossless compression can often beat PNG especially on images with transparency
  • Relatively simple
  • Squishy! 🍡

Future Features

  • Animated images
    • Frame difference encoding
    • Loop points
    • Arbitrary frame timings
    • Decoder-based frame interpolation
  • Floating point color
  • Metadata?
Commit count: 0

cargo fmt