Skip to main content

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

You are welcome to use these tools in your project, but note that support for .ase files is not complete: it currently only supports the subset of Aseprite features I use. In particular, it only supports sprites with a color palette.

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

asetools-0.1.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

asetools-0.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file asetools-0.1.0.tar.gz.

File metadata

  • Download URL: asetools-0.1.0.tar.gz
  • Upload date:
  • Size: 11.8 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

Hashes for asetools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b53007525621fac863aa778043ed95c541e20f7704ae543b56656017e25e1fcd
MD5 a5081e9c7077b475f59f826f5f186a30
BLAKE2b-256 51f8b14e33a55110babd49804f148233473d0050c817e92acfb2ac4026944de6

See more details on using hashes here.

File details

Details for the file asetools-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: asetools-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 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

Hashes for asetools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2e4d2621baf6c3d5e3e43849ecd7516920e2598fdd337168c8a26f46e704f8f
MD5 15bcc295cba5d6fa37fa68ffdb0e10fe
BLAKE2b-256 9ce82041657c24b6ea113069295574d8ae715bc17ed35c627dfd02d52ef53d6d

See more details on using hashes here.

Supported by

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