Skip to main content

Win cursor package to .cape file converter

Project description

capeify

A tool to convert Windows cursor packs to Mousecape capes

capeify logo

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.

TODO

  • Fix the pillow version in pyproject.toml
  • Fix the issue with .ani files caused by the mousecape frame count limit
  • Fix the issue caused by cur files in ani files having varying height
  • Fix the issue with ani files caused by the wrong calculation of the frame count
  • Fix the false frame duration issue with .ani files
  • Fix issues caused by non-centered .cur and (possibly) .ani files
  • Add min cursor size and cursor size capping
  • Add cape to windows cursor pack conversion

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

capeify-1.1.2.tar.gz (437.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capeify-1.1.2-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file capeify-1.1.2.tar.gz.

File metadata

  • Download URL: capeify-1.1.2.tar.gz
  • Upload date:
  • Size: 437.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for capeify-1.1.2.tar.gz
Algorithm Hash digest
SHA256 88d11e907533e95f051e0bb874dbf509a7e3443c8dd2b27f1b06065dfa4bbf59
MD5 b76f9fe6fbc7d840b8aba3354993ca81
BLAKE2b-256 f97d5ab10c8c14a676448237f0b1ed7ddaf93fcb167e4e93d4e07e5da8030020

See more details on using hashes here.

File details

Details for the file capeify-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: capeify-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for capeify-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b84260b11a612bdd10f1002c7898dd0f84621aac40bf1e30eae001512c9411c
MD5 a8ab48aa378c90c161315d13e7489caa
BLAKE2b-256 361c90fa210d401dd3e5fee61b2aaf866207078b4c9f35e22876e1925b70de0d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page