A tool that can convert Windows Animated Cursors (*.ani) to GIF/Pillow Images/Cape format. Forked from: https://github.com/hebtuerror404/ANI2Cape
Find a file
2025-06-17 07:41:06 +02:00
ani2cape.py Add cursor rotation 2025-05-04 18:38:41 +02:00
ani2gif.py Handle palettes with intermittent zeroes 2025-04-30 05:12:08 +02:00
ani2spritesheet.py Handle palettes with intermittent zeroes 2025-04-30 05:12:08 +02:00
com.alexzielenski.mousecape.dump.cape Add files via upload 2022-12-20 18:43:26 +08:00
config.py Update example config and readme 2025-06-17 07:41:06 +02:00
gif2spritesheet.py Create gif2spritesheet.py 2022-12-19 19:13:19 +08:00
README.md Update example config and readme 2025-06-17 07:41:06 +02:00
setup.py Features, packaging + sample config, cf. README.md 2024-10-01 03:14:01 +02:00

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上制作指针