Automates export of Aseprite files in different scales.
Supports PNG
and GIF
formats, and exports from x1 to x10 scales.
Note
You need Aseprite installed to your system in order for this to work.
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.
There's a Test/test_smug.aseprite
you can test with the PNG
format option and it should generate the following:
Note
Only at source. Not included in export builds.
The program uses the following functions in order to work.
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"])
- Example:
aseprite [OPTIONS] [FILES]...
- launch installed Aseprite in the command line (see aseprite.org/docs/cli/#options)--batch
/-b
- run and process commands only, then finish them. (see aseprite.org/docs/cli/#batch)- Example:
aseprite -b
- Example:
--save-as
- saves the document with the provided file name. (see aseprite.org/docs/cli/#save-as)--scale FACTOR
- resizes the image with the givenFACTOR
. (see aseprite.org/docs/cli/#scale)- Example:
aseprite -b amogus.png --scale 4 --save-as amogus_x4.png
- Example:
- Add
.gif
format - Add scale options
This work is under the MIT License.
Made by Camshaft, © 2016-present
https://www.fontsc.com/font/bit3
License: Freeware - Personal & Commercial Use