自动批量上传图片至TinyPNG压缩照片.支持命令行、window、Mac,免安装支持MacOS和Windows系统。Automatically upload multiple images to TinyPNG for compressing photos. Supports command line, Windows, and Mac, with no installation required for both MacOS and Windows systems.
实现思路:
tinypng-input
文件夹里的文件.WebP
.PNG
.JPEG
且文件体积低于5MBX-Forwarded-For
头绕过该限制)tinypng-output
文件夹1.将需要压缩的图片放入项目根目录tinypng-input
文件夹中
2.打开CMD
,输入以下命令执行
go run main.go
Windows系统免安装客户端版:Releases · liutongke/go-tinypng (github.com)
声明:仅供学习讨论。
该仓库仅用于学习,如有商业用途,请购买官方的 pro 版:https://tinify.com/checkout/web-pro
Implementation steps:
tinypng-input
folder..WebP
.PNG
.JPEG
and have a file size less than 5MB.X-Forwarded-For
headers are used to bypass this limit).tinypng-output
folder.Place the images that need to be compressed into the tinypng-input
folder in the project root
directory.
Open CMD
and enter the following command to execute.
go run main.go
Windows system portable client version (no need to install):Releases · liutongke/go-tinypng (github.com)
Disclaimer: For learning and discussion purposes only.
This repository is only for learning purposes. If you want to use it for commercial purposes, please purchase the official pro version.:https://tinify.com/checkout/web-pro