Skip to main content

Win cursor package to .cape file converter

Reason this release was yanked:

has a typo which makes it not differ in any way from 1.2.0

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

You can contribute to this project code-wise by cloning this repo and fixing issues, adding new features, fixing bugs and completing the TODO lists elements (in order) down below and creating pull requests.

You can also contribute to this project idea and feedback wise by 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
  • Create a easier to use app
  • 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
  • Create tests.
  • 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.3.0.tar.gz (491.3 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.3.0-py3-none-any.whl (88.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for capeify-1.3.0.tar.gz
Algorithm Hash digest
SHA256 3eee1cce0369737e8075c1babecdc6ba5af5b993b2219532a8986c72d2156eb2
MD5 82b262bc35979bfaaf196d6952706488
BLAKE2b-256 5681f547f63465576669c7f9e461a1e95a2bfe236f901b8a83a123dbfb77afea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: capeify-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 88.5 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1219ff9222206802c5794ab22bd59dbb582ee83ad36e2dc19a4ee6a2623b186a
MD5 9330565c62057bdd3ea84e59bad08327
BLAKE2b-256 d95489f9936bdcf888a1943bde31854a5680d541a7476f31cd20cbdd0b357a46

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