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

 


Reply