Metadata-Version: 2.4
Name: capeify
Version: 1.0.0
Summary: Win cursor package to .cape file converter
Author: mmemoo
Requires-Python: >=3.12.0
Description-Content-Type: text/markdown
Requires-Dist: Wand
Requires-Dist: Pillow
Requires-Dist: lxml
Requires-Dist: ani_file

<h1 align="center">capeify</h1>
<p align="center">A tool to convert Windows cursor packs to Mousecape capes</p>
<a href="https://github.com/mmemoo/capeify"><img width="400" alt="capeify logo" src="logo.png"></a></br>

# Downloading

**Imagemagick**

To use this tool you need Imagemagick, download it following the guide according to your OS :

Debian/Ubuntu : https://docs.wand-py.org/en/0.6.2/guide/install.html#install-imagemagick-debian

Fedora/CentOS : https://docs.wand-py.org/en/0.6.2/guide/install.html#install-imagemagick-redhat

MacOS : https://docs.wand-py.org/en/0.6.2/guide/install.html#install-imagemagick-mac

Windows : https://docs.wand-py.org/en/0.6.2/guide/install.html#install-imagemagick-windows

**Capeify**

To download Capeify itself, simply:
```
pip install capeify
```

# How to use it
To convert a Windows cursor pack , run :
```
capeify convert --path PATH/TO/THE/CURSORPACK --inf-file INF_FILE_NAME --out OUT_FILE_PATH
```

# How it works
The program first parses the INF file and reads the [Strings],[AddReg] etc. entries and gets the cursor names and their corresponding cur/ani files,
after that those cur/ani files are parsed and their hotspot position,frame duration,frame count etc. are saved and they're converted to pngs, also the cursor names are translated into MacOS cursor identifiers.

After that a ready cape file template is filled with those data and its ready to use.

# Contributing
To contribute to this project, create issues telling me if there are any problems like if a Win cursor name is translated into the wrong MacOS identifier or if a identifier is missing,if a cursors hotspot is wrong etc.

Also you can recommend features to contribute and further develop this project.
