A tool that can convert Windows Animated Cursors (*.ani) to GIF/Pillow Images/Cape format

Mike L 8662bfb600 Update example config and readme 1 hafta önce
README.md 8662bfb600 Update example config and readme 1 hafta önce
ani2cape.py 86edaa4b67 Add cursor rotation 1 ay önce
ani2gif.py 32270a18f3 Handle palettes with intermittent zeroes 1 ay önce
ani2spritesheet.py 32270a18f3 Handle palettes with intermittent zeroes 1 ay önce
com.alexzielenski.mousecape.dump.cape 8ded24d9f2 Add files via upload 2 yıl önce
config.py 8662bfb600 Update example config and readme 1 hafta önce
gif2spritesheet.py ee1d5ee1ae Create gif2spritesheet.py 2 yıl önce
setup.py d8a9ba0713 Features, packaging + sample config, cf. README.md 8 ay önce

README.md

Forked ANI2Cape

  • 添加了一个完整的config.py范例
  • 添加了对普通静态.cur文件的支持(部分.cur是直接用.ico重命名得到的,在此特别支持)
  • 添加了对索引颜色的支持,并且针对Pillow对.ico/.cur色板格式处理的问题作出修正
  • 添加了在配置文件中直接旋转光标的功能
  • HiDPI打开时(范例中默认打开),将源文件自动视为两倍大小版本导入,并同时生成普通大小版本
  • 添加了自动计算长宽的功能 a. 长和宽均为-1,则直接从原图取得长宽数值 b. 长、宽二者之一为-1,则从给定数值的边长计算出缩放倍率并等比缩放
  • 通过在四周增加2像素padding解决顶格的动态指针边缘出现黑线的问题

注:

  • 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

一个可以将ANI格式文件转化为GIF格式、抽帧转为Pillow Images格式,转为Linux/MacOS可用的指针格式的工具~

  • ANI2Pillow Image
  • ANI2GIF(ANI2Pillow Image + Pillow Image2GIF)
  • ANI2SpriteSheet(ANI2Pillow Image + Pillow Image2SpriteSheet)
  • GIF2SpriteSheet(GIF2Pillow Image + Pillow Image2SpriteSheet)
  • ANI2Cape

Usage

Usage:python XXX.py <inputFile> <outputFile,Option>

inputFile:需要转化的文件路径。

outputFile:输出的文件路径。默认为<输入文件名>.xxx

Document

从Windows动态指针到MacOS动态指针——ANI2GIF

从Windows动态指针到MacOS动态指针—— 在MacOS上制作指针

从Windows动态指针到MacOS动态指针—— 在Windows上制作指针