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.
- 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
- Download the latest release or build from source.
- 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.
-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
Go Lang
> go get -u golang.org/x/image/draw> go get -u golang.org/x/image
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 are welcome! Feel free to open issues, submit pull requests, or suggest new features to make ResizeGo even more versatile.
This project is licensed under the MIT License.