photoZip

command module
v0.0.0-...-75a490d Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

README

github.com/liushuai05/photoZip

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

photoZip golang GoDoc license

Learn more: liushuai05

开发方式

测试环境

go run .

打包 linux 环境

go build .

打包 windows 环境

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build .

下载地址

download binary file

如何使用

-n int 是否输出跟源文件相同的名称,0:是,1:不是,如果不是,系统会给出一个随机代码,默认是输出相同的名字

-o string 输出的路径 (default ".")

-q int 输出的照片质量,范围是从1 - 100 (default 75)

-r string 指定的输入路径,路径是指的图片所处的文件夹,文件夹中还有文件夹不影响,系统会找到你指定文件夹中的所以照片,包括文件夹中的文件夹里的图片 (default "./test")

-w int 输出的照片尺寸,0是跟之前一样大,单位是px

如果权限不足,记得改权限 chmod +x ./photoZip

  • 用 windows 打开windows的命令行这样使用: photoZip.exe -r [your resource path] -o [your out put path] -q [the quality]

  • Mac和Linux: photoZip -r resource path -o output path

支持 png jpg jpeg and gif ,所有格式都按照jpeg来输出,所以GIF最好别用。因为输出的是第一张图

HERE

Stargazers over time

Stargazers over time

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
⌂ 换网址