img

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

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

Go to latest
Published: Mar 26, 2018 License: MIT Imports: 2 Imported by: 0

README

img

About

This is a Image CLI written in Go. My wife needed a simple tool to resize images quickly, so I decided to write it myself :). This is a learning excercise; the goal is to learn how to build a CLI. So far, the client only has one command: Resize. I may add more features later.

I used Cobra for the CLI and resize lib for the image resize functiom.

Instalation

go get -v github.com/yanndr/img

Usage

Usage: img [flags] img [command]

Available Commands: help Help about any command

resize Resize the images to a percentage or a value.

version Print the version number of img

Flags: -h, --help help for img

Use "img [command] --help" for more information about a command.

resize usage

img resize [files ...] [flags]

Flags: -f, --format string Force the format of the output: png or jpg. if empty it will keep the input image format.

-h, --help help for resize

-o, --out string Output directory for the images defautl: out. (default "out")

-s, --size int Size in % of the original image. (default 50)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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