Skip to main content
Question

How to export images or other objects in plugin API?

  • October 13, 2025
  • 0 replies
  • 22 views

MaxKillMax

This is my code:
const image = figma.getImageByHash(imageHash);
    const bytes = await image.getBytesAsync();
    const bytesArray = Array.from(bytes);
    const fileName = `${folder}/${nodeName}_${imageHash}.png`;

I tried to use blobs in ui part, exportAsync in plugin part and tried to find other ways but I couldn’t. What I need to do?