How to load image from extension folder?

I am currently using this line to load images for my extension

local my_img = Image{fromFile = "./data/extensions/MyExtension/img/my_img.png"}

How could images be loaded from “MyExtension” folder?

And is there a way to remove these image paths from the recent files list on aseprite main window? (I have tried to modify “configuration.ini” in the RoamingData, and the paths are still there after I deleted them from .ini file and reopen aseprite.)

1 Like