Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joway/imagic
An easy and fast tool to process images.
https://github.com/joway/imagic
cli compression image-processing libimagequant watermark
Last synced: 4 months ago
JSON representation
An easy and fast tool to process images.
- Host: GitHub
- URL: https://github.com/joway/imagic
- Owner: joway
- License: mit
- Created: 2019-01-07T12:40:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T21:42:08.000Z (almost 4 years ago)
- Last Synced: 2023-08-12T01:10:23.621Z (over 1 year ago)
- Topics: cli, compression, image-processing, libimagequant, watermark
- Language: Go
- Homepage: https://imagic.joway.io
- Size: 44 MB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Imagic
![GitHub release](https://img.shields.io/github/tag/joway/imagic.svg?label=release)
[![Travis Build](https://travis-ci.org/joway/imagic.svg?branch=master)](https://travis-ci.org/joway/imagic)
[![Go Report Card](https://goreportcard.com/badge/github.com/joway/imagic)](https://goreportcard.com/report/github.com/joway/imagic)
[![codecov](https://codecov.io/gh/joway/imagic/branch/master/graph/badge.svg)](https://codecov.io/gh/joway/imagic)
[![CircleCI](https://circleci.com/gh/joway/imagic.svg?style=shield)](https://circleci.com/gh/joway/imagic)An easy and fast tool to process images.
[https://github.com/joway/imagic](https://github.com/joway/imagic)
## Install
```shell
go get github.com/joway/imagic
```Or
[Download binary](https://github.com/joway/imagic/releases)
## Usage
### Supported format
- png
- jpeg### Global Flags
```shell
-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
```shell
$ imagic compress -q 70 -p 10 \
-s .comp -o ./output \
./testdata/**/*.png
```### Resize
#### Usage
```shell
-l, --height int Height of output image, default adaptive
-w, --width int Width of output image, default adaptive
```#### Example
```shell
$ imagic resize -w 320 -p 10 \
-s .comp -o ./output \
./testdata/**/*.jpg
```### Watermark
#### Usage
```shell
-x, --X string Pos X (default "+0")
-y, --Y string Pos Y (default "+0")
-t, --texture string Texture filename
```#### Example
```shell
$ imagic watermark -x -600 -y -100 \
-t ./testdata/images/texture.png \
-p 10 -o ./output \
./testdata/**/*.jpg
```#### X,Y Position:
![watermark](watermark.png)
## Who's using Imagic?
[Jallery](https://pho.joway.io)
## Benchmark
[benchmark.md](docs/benchmark.md)
## Acknowledgement
- [libimagequant-go](https://github.com/joway/libimagequant-go)
- [imaging](https://github.com/disintegration/imaging)
- [mergi](https://github.com/noelyahan/mergi)