Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.3 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.3 KB

Dveco

A recursive lossy image compressor based on standard deviation, clearly worse than JPEG.

Name stands for Deviation Compressor.

It is a Pluto notebook written in Julia. Has a live demo and everything.

How it works

It calculates the standard deviation of the color value of the pixels in an image. Then, it splits the screen in four and calculates the standard deviation for each quadrant. When it is below a certain threshold, it stores the average value and the size of the image portion currently being evaluated. It has around 10-50% size reduction at a (more or less) acceptable threshold.

Should I use it?

No. JPEG is smarter, more sofisticated and simply better in every single way.

Demo

With a compression threshold of 0.064:

Newton compressed image of Newton

Credits

Original concept and implementation done by the great sr. Sánchez, my math teacher. However, his version used JavaScript, so this is a much need, much faster reimplemantation written in Julia.