ResizeImage is a command-line tool designed for batch resizing of images from your phone or other devices. It utilizes the Lanczos interpolation method (a=3) for high-quality image resizing.
- Batch Processing: Resize multiple images in a single command.
- Custom Width: Specify a new width for the images (mandatory).
- Quality Control: Set the output image quality on a scale from 1 to 100.
- Parallel Processing: Adjust the number of threads for faster processing.
- File Management: Options to overwrite original files and set the current date for the output files.
To use ResizeImage, you need to provide the following flags:
-input: Path to the directory containing the images (required).-width: New width for the images (required).-r: Flag to overwrite the original files (optional).-newdate: Flag to set the current date for the output files (optional).-quality: Level of quality for the output images (default is 100).-threads: Number of parallel threads to use (default is 2).
go run main.go -input /path/to/images -width 1980 -quality 70 -threads 4For a demonstration of how the tool works, check out the following video: Demo Video
To install ResizeImage, clone the repository and build the project:
git clone https://github.com/SadovovAlex/resizeimage.git
cd resizeimage
go buildget Release binary for your OS here Release
Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.