resizego

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

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 7 Imported by: 0

README

ResizeGo

Resize multiple JPG images with high quality and low space

ResizeGo is a simple command-line tool written in Go that allows you to efficiently resize a collection of JPG images, optimizing for both high quality and reduced storage space. The tool supports concurrent processing for faster resizing and is designed to be easy to use.

Features

  • Resize multiple JPG images concurrently
  • Optimize for high quality with adjustable JPEG compression
  • Efficiently reduce file size for better storage utilization
  • Specify custom output directories for resized images
  • Command-line interface for easy integration into workflows

Usage

  1. Download the latest release or build from source.
  2. Run the executable with the source directory as a command-line argument:
./resize_images source_directory

Resized images will be saved in separate output directories for high quality and low space versions.

Options

  • -quality: Adjust JPEG compression quality (default is 80)
  • -maxwidth and -maxheight: Set maximum width and height for resizing
  • -output: Specify custom output directory names for different sizes

Requirements

Go Lang

> go get -u golang.org/x/image/draw
> go get -u golang.org/x/image

Examples

Resize images in the "travel" directory, saving large versions to "travel-lg" and small versions to "travel-sm":

go run resize_images.go travel

travel-lg, travel-sm directories will be created:

Resized images will be stored seperately.

1000 images may resize without memory overflow.

Contributions

Contributions are welcome! Feel free to open issues, submit pull requests, or suggest new features to make ResizeGo even more versatile.

License

This project is licensed under the MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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