imagic

command module
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 1 Imported by: 0

README

Imagic

logo

GitHub release Travis Build Go Report Card codecov CircleCI

An easy and fast tool to process images.

https://github.com/joway/imagic

Install

go get github.com/joway/imagic

Usage

Supported format
  • png
  • jpeg
Global Flags
-o, --output string   Output directory
-p, --parallel int    Number of parallel tasks (default 4)
-s, --suffix string   Suffix of precessed image filename, format: [base_filename][suffix].[ext]
Compress
Usage
-q, --quality int     Quality of image compression (default 70)
Example
$ imagic compress -q 70 -p 10 \
	-s .comp -o ./output \
	./testdata/**/*.png
Resize
Usage
-l, --height int   Height of output image, default adaptive
-w, --width int    Width of output image, default adaptive
Example
$ imagic resize -w 320 -p 10 \
	-s .comp -o ./output \
	./testdata/**/*.jpg
Watermark
Usage
-x, --X string         Pos X (default "+0")
-y, --Y string         Pos Y (default "+0")
-t, --texture string   Texture filename
Example
$ imagic watermark -x -600 -y -100 \
	-t ./testdata/images/texture.png \
	-p 10 -o ./output \
	./testdata/**/*.jpg
X,Y Position:

watermark

Who's using Imagic?

Jallery

Benchmark

benchmark.md

Acknowledgement

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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