jpeg-junkify

command module
v0.0.0-...-c0b8e48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 8 Imported by: 0

README

jpeg-junkify

Go Report Card

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

Documentation

Overview

Package main provides a command-line-interface to reduce the quality of jpeg images.

Directories

Path Synopsis
Package jpeg provides utilities on jpeg images.
Package jpeg provides utilities on jpeg images.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL