Skip to content
/ Dveco Public

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

License

Notifications You must be signed in to change notification settings

odilf/Dveco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages