GitHub - yimiIO/98tinyPNG: script of tiny png, compress picture size

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Folders and files

NameName

Last commit message

Last commit date

Latest commit

History

12 Commits

Repository files navigation

98tinyPNG

TinyPNG 批量压缩图片脚本

一、环境配置

1.Python 环境,

2.tinyPNG sdk

sudo pip install --upgrade tinify

二、申请 AppKey

TinyPNG 网站上去申请 AppKey,一个月只能压缩 500 张

三、下载并运行脚本

tinify.key = "your AppKey" # AppKey
fromFilePath = "/Users/zpy/Desktop/test1" # 源路径
toFilePath = "/Users/zpy/Desktop/test2"   # 输出路径

运行脚本。打开终端:

python /Users/zpy/Documents/STTinyPNG-Python/98tinyPNG-Python.py

About

script of tiny png, compress picture size

Resources

Readme

Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks

Releases

No releases published

Languages