All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

PEP: Specialized Compression Format for Pixel Art with Superior Size Reduction

By

msephton

9mo ago· 7 min readenCode

Summary

PEP (Prediction-Encoded Pixels) is a specialized image compression format designed specifically for low-color pixel art (up to 256 colors). It uses Prediction by Partial Matching, Order-2 compression to achieve superior compression ratios compared to GIF, PNG, and QOI formats, typically reducing image sizes by 20-50% smaller than GIF/PNG and multiple times smaller than QOI. The trade-off is slower compression speed (2-10x slower than other formats), making it ideal for applications where file size is more important than encoding speed.

Key quotes

· 4 pulled
This format is specifically designed to be for low-color pixel art (<=16 colors works best, up to 256 colors is supported)
It uses "Prediction by Partial Matching, Order-2" compression, which is able to compress packed-palette-indices smaller than GIF, PNG, and QOI
It's 2-10x slower than GIF/PNG/QOI (depending on the image), but often compresses the image 20-50% smaller than GIF/PNG (and multiple-times smaller than QOI)
If you care about compressed image size, this is for you
Snippet from the RSS feed
Prediction-Encoded Pixels - designed to compress pixel art as much as possible (by sacrificing a bit of time) - ENDESGA/PEP

You might also wanna read