sakura/manifest
spirit 3e34024bd9 fix 2019-12-21 21:18:32 +08:00
..
.vscode manifest.py 2019-11-28 17:41:44 +08:00
gallary update cover images 2019-11-29 13:16:38 +08:00
jpeg update cover images 2019-11-29 13:16:38 +08:00
webp update cover images 2019-11-29 13:16:38 +08:00
README.md fetch manifest.json at backend 2019-12-15 16:57:53 +08:00
__init__.py GUI for manifest tool 2019-11-29 01:07:17 +08:00
icon.ico GUI for manifest tool 2019-11-29 01:07:17 +08:00
icon.png GUI for manifest tool 2019-11-29 01:07:17 +08:00
manifest.json update cover images 2019-11-29 13:16:38 +08:00
manifest.py fix 2019-12-21 21:18:32 +08:00
qt.py GUI for manifest tool 2019-11-29 01:07:17 +08:00

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