Skip to main content

We are currently encountering different behaviors between Plugin API and Rest API when exporting images. Under the Group node, there is a Vector node(node1) and a Rectangle node (node2) with opacity set to 0.

 

When exporting images through the Plugin API's exportAsync method, regardless of whether useAbsoluteBounds is set to true or false, the export result is as follows:

 

However, when using the Rest API at https://api.figma.com/v1/images/ to export images:
  • When use_absolute_bounds is set to false, the result is:

 

  • When use_absolute_bounds is set to true, the result is:

 

It would be best if the export results of both APIs remain consistent with the REST API.

By the way, the height of absoluteBoundingBox and absoluteRenderBounds should be different

 


Hi ​@charlynquan,


I understand you're seeing different behaviors between the Plugin API and REST API when exporting images, especially around useAbsoluteBounds(use_absolute_bounds), and you're suggesting that it would be ideal if both APIs produced consistent export results, following the REST API behavior.

 

I appreciate you sharing this detailed example. I’ll pass your post along to the relevant team for review. We’ll follow up here if we have any updates to share.

 

Thanks!