Tools to work with Aseprite files
Project description
Asetools
Aseprite is a wonderful pixelart tool. Unfortunately its license is not OSI compliant, even if the source code is available. This makes it complicated to rely on the tool being available everywhere it's needed. This is a problem for CI servers or open-source application stores like F-Droid.
Asetools are open-source command-line tools to work with Aseprite images.
Tools
asesplit
The asesplit
tool turns .ase images into .png. It can extract individual layers and/or slices, trim and rotate them.
usage: asesplit [-h] [--split-layers] [--split-slices] [--trim]
[--rotate ANGLE] [--dry-run]
ase_file format
Turn an Aseprite file into one or several png files.
positional arguments:
ase_file
format Define the name of the generated files. Supported keywords:
{title}, {layer}, {frame}, {slice}
options:
-h, --help show this help message and exit
--split-layers
--split-slices
--trim
--rotate ANGLE Rotate image by ANGLE degrees counter-clockwise
--dry-run
aseinfo
The aseinfo
tool gives you information about the content of a .ase file.
usage: aseinfo [-h] [-j] ase_file
Display info about an aseprite file
positional arguments:
ase_file
options:
-h, --help show this help message and exit
-j, --json JSON output
Installation
The recommended way to install is using pipx.
pipx install asetools
Tests
You can run tests using pytest
. Just run pytest
in this directory.
Warning
Asetools works well for me: it has been used for years now in Pixel Wheels, but its support for .ase files is limited to the subset of Aseprite features I use. In particular, it currently only supports sprites with a color palette.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file asetools-0.1.1.tar.gz
.
File metadata
- Download URL: asetools-0.1.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.16.1 CPython/3.10.12 Linux/6.5.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a32dc2379a8f5a31ded1fc214d97787382bf7e2e00e6bf960d1e426f29064a0 |
|
MD5 | 59c540a9517302a225968149246cf5da |
|
BLAKE2b-256 | 43b57dd62bb9ef25690e01f82feb3d86ce580ebc965baf7aa9e042f73ea431cf |
File details
Details for the file asetools-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: asetools-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.16.1 CPython/3.10.12 Linux/6.5.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a48e9b0866d7586420aeb3d0ef16aa9c59a191bb5620de143e3cf0a314019cf |
|
MD5 | e292b1e469967a715072be793c9eac03 |
|
BLAKE2b-256 | e69894d762a47c67e503c5f1db849a2aca4841899e251d5261307541671df88a |