api icon indicating copy to clipboard operation
api copied to clipboard

Sprite:saveCopyAs() inconsistence

Open PKGaspi opened this issue 4 years ago • 1 comments

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.

PKGaspi avatar Nov 06 '21 12:11 PKGaspi

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.

IgnacioLuxP avatar Nov 11 '21 17:11 IgnacioLuxP