jpeg-junkify
an image quality reducer
Jpeg-junkify is a utility that reduces the quality of JPEG images without changing their dimensions. This makes them take up less space on computers. The utility runs on single files or whole folders.
Dependencies
Go 1.17 is used to build the application.
Make is used by Makefile to build the application.
Build
Run make
to build and run the application. This creates the jpeg-junkify
executable in the build
folder.
To compile for Windows, run make GO_ARGS="GOOS=windows" OBJ="jpeg-junkify.exe"
.
The GOARCH
build flag can be added after GOOS
to specify the CPU architecture: make GO_ARGS="GOOS=linux GOARCH=386"
. Common values are amd64
, and 386
.
Testing
Run make test
to run the tests for the application.
Running
The application runs on the command line. Run it with the -h
parameter for more information: ./build/jpeg-junkify -h
Examples:
./build/jpeg-junkify -b 3M -in-dir ~/Desktop/maps/ -out-dir ~/Desktop/out/
./build/jpeg-junkify -f cows.jpg -b 750KB