go-image-resize-cli

command module
v0.0.0-...-636de2f Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 12 Imported by: 0

README

go-image-resize-cli

A command line tool to resize images in bulk.

This tool does not modify the original images, it simply creates a new directory inside the directory it was called from called "Resized_Images" and places the resized images there.

Installation

**Installation requires Go and Git to be installed on the host computer.

Clone the repository:

git clone https://github.com/mgperkowski/go-image-resize-cli.git

Navigate to the project directory:

cd go-image-resize-cli

Build the binary:

go build -o go-resize .

Move the binary to a directory in your PATH:

mv go-resize /usr/local/bin/

Run the CLI:

go-resize ./path/to/dir -w 500

#or

go-resize ./path/to/image.jpg -h 450

You can specify either the width or the height, the image aspect ratio will be maintained. You can also give a path to a directory or a single image file.

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
⌂ 换网址