Hasty Briefsbeta

Prediction-Encoded Pixels image format

16 days ago
  • #pixel-art
  • #game-development
  • #compression
  • PEP is a compression format designed for low-color pixel art (<=16 colors works best, up to 256 colors supported).
  • Uses 'Prediction by Partial Matching, Order-2' compression, offering better compression than GIF, PNG, and QOI but is slower (2-10x slower).
  • Compresses images 20-50% smaller than GIF/PNG and multiple times smaller than QOI.
  • Designed for games, PEP outputs a structure with useful elements, where PEP.data contains only pixel bytes.
  • Includes functions like pep_compress(), pep_decompress(), pep_save(), and pep_load() for easy integration.
  • Performance benchmarks show PEP often outperforms PNG, GIF, and QOI in compression ratio for specific image sizes and color counts.
  • Inspired by various academic sources on data compression and PPM techniques.
  • Encourages contributions to improve PEP as a pixel art format.