api
api copied to clipboard
Sprite:saveCopyAs() inconsistence
When saving a sprite as a .png or .jpg, it creates the output directory if it does not exist already. On the other hand, saving as .gif does not create the output directory, resulting in an error instead.
The function creating the directory for you is very comfortable.
Same thing happens with .ase/.aseprite files.
As an alternative, you could use https://github.com/aseprite/api/blob/main/api/app_fs.md#appfsmakealldirectories which works great, but it was implemented in a rather recent version. os execute is also kinda limited atm.