Applying script to each .png in a folder

Hello! I am working on a project that applies a script (specificly a 4x scale interpolation, but im mainly looking for the other bit) to each png image in a folder. Does anyone know how I might acomplish this? I am on a windows machine and compiled aseprite from the github (I think, it was a while ago).

Take a look at the documentation for the scripting API. app.fs is the module that contains utilities for file system management, including a method to list all the files in a directory. Files can be loaded as either Sprites or as Images using the constructor with the fromFile parameter. Both Image and Sprite have resize and save methods. There are also app.commands, which mirror the commands you’d select from Aseprite’s menus, if you prefer.

1 Like