Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuadTree-Image-Compression

Quad-Tree image compression algorithm implemented in C using stb_image.h and stb_image_write.h libraries. Efficiently reduces image size while maintaining quality.

Screenshots

Original Image Original Image
Out Image(Quadtree's Level = 11) 371.549 bytes Out Image L11
Out Image(Quadtree's Level = 9) 266.116 bytes Out Image L9

Run Locally

Clone the project

  git clone https://github.com/joseg20/QuadTree-Image-Compression

Go to the project directory

  cd QuadTree-Image-Compression

Install gcc

  apt-get install gcc

Compile the source code

  gcc src/image_compression.c -lm -o image_compression.exe 

Run the code

  ./image_compression.exe img/my-img.exe required-level

Usage/Examples

  ./image_compression.exe img/valp.jpg 11
  ./image_compression.exe img/coolcat.jpg 7
  ./image_compression.exe img/gato.jpg 3

Related

Here are some related projects

STB Image

Authors

License

MIT

About

Quad-Tree image compression algorithm implemented in C using stb_image.h and stb_image_write.h libraries. Efficiently reduces image size while maintaining quality.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages