Skip to content

Automates export of Aseprite files in different scales and formats.

License

Notifications You must be signed in to change notification settings

dinpixels/AseScale

Repository files navigation

AseScale

Automates export of Aseprite files in different scales.
Supports PNG and GIF formats, and exports from x1 to x10 scales.

preview of 'on start' and 'running' app

Note

You need Aseprite installed to your system in order for this to work.

Usage

Choose your preferred format and scales first.
Then, drag and drop *an Aseprite file, and the files will be exported on ~/Documents/AseScale folder.

Important

*Drop 1 file at a time only. Multiple files at once isn't supported.

Testing

There's a Test/test_smug.aseprite you can test with the PNG format option and it should generate the following:

preview of exported files

Note

Only at source. Not included in export builds.

Docs

The program uses the following functions in order to work.

Godot

  • OS.get_system_dir(OS.SYSTEM_DIR_DOCUMENTS) - to get user's Documents path in various platforms.
  • OS.execute(<program_path>, <[args]>) - to run Aseprite and its arguments in the command line.
    • Example: OS.execute("aseprite", ["--batch" , file_path, "--scale", "2", "--save-as", export_path + "/" + output_name + "_x2.png"])

Aseprite

To-do

  • Add .gif format
  • Add scale options

License

AseScale

This work is under the MIT License.

Bit3 Font

Made by Camshaft, © 2016-present
https://www.fontsc.com/font/bit3
License: Freeware - Personal & Commercial Use