插件¶
ImgBot¶
不影响质量的前提下缩小图片大小: https://github.com/apps/imgbot
如果想手动执行一次: https://imgbot.net/app/
cat .imgbotconfig:
This configuration is optional and is only required if you want less frequent pull requests
{
"schedule": "daily", // daily|weekly|monthly
"ignoredFiles": [
"*.jpg", // ignore by extension
"image1.png", // ignore by filename
"public/special_images/*", // ignore by folderpath
],
"aggressiveCompression": "true", // true|false
"compressWiki": "true", // true|false
"minKBReduced": 500, // delay new prs until size reduction meets this threshold (default to 10)
"prTitle" : "Your own pr title",
"prBody" : " Text before optimization ratio {optimization_ratio} Text after optimization ratio
Text before optimization details {optimization_details} Text after optimization details",
}
参考¶
使用 ImgBot 自动为 Github 项目优化图片: https://www.cnblogs.com/lfri/p/12257277.html