mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-21 14:28:13 +08:00
9a7a597ac1
*Total -- 2,005.66kb -> 1,447.46kb (27.83%) /images/smilies/bili/tuxue.png -- 24.83kb -> 8.07kb (67.5%) /images/smilies/bili/xieyanxiao.png -- 25.61kb -> 8.86kb (65.41%) /images/smilies/bili/qinqin.png -- 28.16kb -> 11.01kb (60.89%) /images/smilies/bili/doge.png -- 28.77kb -> 11.70kb (59.35%) /images/smilies/bili/shengqi.png -- 29.09kb -> 12.44kb (57.24%) /images/smilies/bili/guzhang.png -- 29.65kb -> 12.68kb (57.24%) /images/smilies/bili/huaixiao.png -- 37.33kb -> 18.09kb (51.53%) /images/smilies/bili/baiyan.png -- 34.27kb -> 16.73kb (51.18%) /images/smilies/bili/yun.png -- 37.94kb -> 18.67kb (50.78%) /images/smilies/bili/daku.png -- 34.48kb -> 17.04kb (50.58%) /images/smilies/bili/weixiao.png -- 40.23kb -> 20.01kb (50.25%) /images/smilies/bili/yiwen.png -- 38.27kb -> 19.47kb (49.12%) /images/smilies/bili/dianzan.png -- 34.15kb -> 17.70kb (48.18%) /images/smilies/bili/fadai.png -- 42.36kb -> 22.18kb (47.64%) /images/smilies/bili/nanguo.png -- 47.20kb -> 26.09kb (44.71%) /images/smilies/bili/outu.png -- 42.76kb -> 23.69kb (44.61%) /images/smilies/bili/se.png -- 37.86kb -> 21.10kb (44.25%) /images/smilies/bili/wunai.png -- 48.69kb -> 27.46kb (43.61%) /images/smilies/bili/haixiu.png -- 50.82kb -> 29.35kb (42.25%) /images/smilies/bili/xiaoku.png -- 46.64kb -> 28.31kb (39.31%) /images/smilies/bili/weiqu.png -- 46.17kb -> 28.25kb (38.81%) /images/smilies/bili/koubi.png -- 55.59kb -> 34.16kb (38.55%) /images/smilies/bili/jingxia.png -- 64.71kb -> 40.09kb (38.04%) /images/smilies/bili/zaijian.png -- 50.89kb -> 31.81kb (37.49%) /images/logo.png -- 3.23kb -> 2.15kb (33.54%) /images/avatar.jpeg -- 1.29kb -> 0.88kb (31.97%) /images/smilies/bili/shuizhao.png -- 57.47kb -> 39.34kb (31.55%) /images/mashiro-logo-s.png -- 3.05kb -> 2.13kb (30.19%) /images/smilies/bili/sikao.png -- 66.25kb -> 46.90kb (29.21%) /images/smilies/bili/fanu.png -- 70.29kb -> 55.68kb (20.78%) /manifest/icon.png -- 50.43kb -> 41.17kb (18.36%) /manifest/jpeg/e9f33c2c502ab43804964ce7edd431f9.jpeg -- 43.23kb -> 37.48kb (13.3%) /manifest/jpeg/783bf161f47b32882f0e962fd4064de7.th.jpeg -- 20.50kb -> 18.90kb (7.8%) /screenshot.jpg -- 102.79kb -> 94.89kb (7.69%) /manifest/jpeg/19313b0d62b27c8ba022f60fbfedd5ee.jpeg -- 101.61kb -> 94.64kb (6.86%) /images/avatar.jpg -- 14.53kb -> 13.55kb (6.72%) /manifest/jpeg/e9f33c2c502ab43804964ce7edd431f9.th.jpeg -- 9.71kb -> 9.07kb (6.56%) /images/temp.jpg -- 31.91kb -> 29.87kb (6.39%) /manifest/jpeg/783bf161f47b32882f0e962fd4064de7.jpeg -- 200.07kb -> 190.98kb (4.55%) /images/random/d-1.jpg -- 14.69kb -> 14.07kb (4.25%) /images/random/d-4.jpg -- 15.12kb -> 14.51kb (4.06%) /images/random/d-10.jpg -- 15.05kb -> 14.45kb (4.05%) /images/random/d-8.jpg -- 14.89kb -> 14.31kb (3.92%) /images/random/d-9.jpg -- 14.92kb -> 14.33kb (3.91%) /images/random/d-2.jpg -- 15.01kb -> 14.43kb (3.88%) /images/random/d-5.jpg -- 15.39kb -> 14.80kb (3.83%) /images/random/d-3.jpg -- 15.13kb -> 14.55kb (3.83%) /manifest/jpeg/19313b0d62b27c8ba022f60fbfedd5ee.th.jpeg -- 16.88kb -> 16.25kb (3.76%) /images/random/d-6.jpg -- 15.26kb -> 14.69kb (3.74%) /images/random/d-7.jpg -- 15.75kb -> 15.16kb (3.7%) /inc/fonts/iconfont.svg -- 32.47kb -> 31.52kb (2.93%) /inc/fonts/SAKURASO.old/sakuraso.svg -- 7.84kb -> 7.62kb (2.78%) /inc/fonts/SAKURASO.old/sakuraso-symbol.svg -- 7.66kb -> 7.61kb (0.61%) /images/smilies/bili/mudengkoudai.png -- 2.09kb -> 2.07kb (0.61%) /manifest/gallary/海の空(56993195)_by_夏T.jpg -- 54.69kb -> 54.50kb (0.34%) Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com> Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com> |
||
---|---|---|
.. | ||
.vscode | ||
gallary | ||
jpeg | ||
webp | ||
__init__.py | ||
icon.ico | ||
icon.png | ||
manifest.json | ||
manifest.py | ||
qt.py | ||
README.md |
封面图生成工具
依赖
Python3 PIL (Pillow)
安装依赖
安装 Python: https://docs.python.org/zh-cn/3.7/using/index.html
安装 PIL:
# Linix/Mac Terminal
pip install Pillow
# 如果也安装了 Python 2,需要指定 pip 版本:
pip3 install Pillow
# Windows Powershell 或者 CMD
pip install Pillow
# 如果也安装了 Python 2,需要指定 pip 版本:
pip3 install Pillow
# 如果提示权限不足([WinError 5] Access is denied),请运行:
pip install Pillow --user
运行
把图片文件放到 gallary
目录,Windows 可直接双击 manifest.py,或者和其他操作系统一样,在 Terminal、Powershell、CMD 中运行:
# 切换到 manifest.py 所在目录:
cd /path/to/manifest/
python manifest.py
# 如果也安装了 Python 2,需要指定 Python 版本:
python3 manifest.py
GUI 程序开发中,除了以上运行 manifest.py 的方法以外,也可直接运行 qt.py 启动可视化窗口,需要安装 PyQT5:
pip3 install PyQt5
python3 qt.py
TODO
shell/batch 自动安装依赖、自动删除过期文件、压缩图片、GitHub API push、release