/collie

Batch compress photos, written in GO. 高性能批量图片压缩工具

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

github.com/googege/collie

视频演示 | Video presentation

Picture processing tools like compressing pictures, adding watermarks, etc ,it support batch processing.

collie golang GoDoc license

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
  • -r the resource photos dir path
  • -o the output dir path
  • -w the result photos' width ,or you can set 0,you will get the same width with the old one.
  • -q the quality of the output photos from 20 to 100.

like:

// 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

项目 介绍
对我的赞助 p
便宜服务器推荐 阿里云梯子服务器:支持支付宝
微信公众号 p
知识讨论微信群 p
我的社交平台 b站YouTube微博,抖音:googege

Stargazers over time

Stargazers over time