视频演示 |
Video presentation
Picture processing tools like compressing pictures, adding watermarks, etc ,it support batch processing.
Learn more: shgopher
Features
-
🚄 Fast: leveraging go's high concurrency capabilities, this tool has unparalleled speed.
-
🚲 Easy: you just need install it to the terminal and you can get started quickly.
How to use
use go
collie -r -o - w -q -n
-n int
是否输出跟源文件相同的名称,0:是,1:不是,如果不是,系统会给出一个随机代码,默认是输出相同的名字
-o string
输出的路径 (default ".")
-q int
输出的照片质量,范围是从1 - 100 (default 75)
-r string
指定的输入路径,路径是指的图片所处的文件夹,文件夹中还有文件夹不影响,系统会找到你指定文件夹中的所以照片,包括文件夹中的文件夹里的图片 (default "./test")
-w int
输出的照片尺寸,0是跟之前一样大,单位是px
// add "gopath/bin" to PATH.
go get -u github.com/googege/collie
//
collie -r /Users/googege/Desktop/test -o /Users/googege/Desktop/app -w 0 -q 30
use binary file
download binary file
when you download the binary file ,do not forget chmod +x ./collie_macos
-
when you use windows you should open windows command and use collie.exe -r [your resource path] -o [your out put path] -q [the quality]
-
in mac or linux open your bash or zsh command, use collie_[linux/macos] -r resource path -o output path
suport png jpg jpeg and gif ,and all of the output is jpeg
HERE
| 项目 |
介绍 |
| 便宜服务器推荐 |
阿里云,梯子服务器:支持支付宝 |
| 微信公众号 |
科科人神 |
| 我的社交平台 |
b站 |
Stargazers over time
