Features, packaging + sample config, cf. README.md

This commit is contained in:
Mike L 2024-10-01 03:14:01 +02:00
parent 8ded24d9f2
commit d8a9ba0713
Signed by: mikeslab
GPG key ID: 48CCD1768D862D40
4 changed files with 237 additions and 76 deletions

View file

@ -1,3 +1,16 @@
# Forked ANI2Cape
- 添加了一个完整的[config.py](./config.py)范例
- 添加了对普通静态.cur文件的支持部分.cur是直接用.ico重命名得到的在此特别支持
- HiDPI打开时范例中默认打开将源文件自动视为两倍大小版本导入并同时生成普通大小版本
- 添加了自动计算长宽的功能
a. 长和宽均为-1则直接从原图取得长宽数值
b. 长、宽二者之一为-1则从给定数值的边长计算出缩放倍率并等比缩放
注:
- `ani2cape.py`不接受参数,直接运行即读取同目录下`config.py`内容,其中`Cursors`子项目`Path`属性使用相对路径时基于当前切换到的目录(而不是程序目录)
- 建议先创建并启用venv后`pip install -e .`安装,编辑`config.py`内容后,再切换到包含指针的目录直接运行`ani2cape`命令
# ANI2Cape
A tool that can convert Windows Animated Cursors (*.ani) to GIF/Pillow Images/Cape format