Skip to content

Resize multiple JPG images with high quality and low space

License

Notifications You must be signed in to change notification settings

amhewagama/resizego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Resize multiple JPG images with high quality and low space

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages