8000 GitHub - H4wk507/jpg-encoder: Simple, single-file jpg compression implementation, under 1k lines of cpp
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

H4wk507/jpg-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jpg encoder

Simple, single-file jpg compression implementation in under 1k lines of cpp.

Works only on ppm image format, and on image dimensions that are multiple of 64.

Usage

Create build dir

mkdir build && cd build

Build with cmake

cmake -DCMAKE_BUILD_TYPE=Release .. && make

Run

./jpg_encoder dog.ppm out.jpg 100

For sample dog image we get from 3.1MB to 162KB. 94.9% reduction!

TODO:

  • more image formats supported
  • more flexible dimension support

About

Simple, single-file jpg compression implementation, under 1k lines of cpp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0