How do i fill the artboard with a image which is in the plugin folder
const pluginFolders = await fs.getPluginFolder();
const entries = await pluginFolders.getEntries();
const compressedImage = await pluginFolder.getEntry('rendition.jpg');
let fill = new ImageFill(compressedImage);
selection.items[0].fill = fill(fill);
When I run the console says:
Plugin Error: Cannot load ImageFill from path: “my image file path”
at new ImageFill (plugins/BitmapFillWrapper.js:1:514)