Skip to main content
Question

incorrect image export in the plugin

  • November 18, 2024
  • 0 replies
  • 11 views

user1

The text node and the rectangle with the image are children of the frame.
The Image itself is larger than the visible part and the frame.
I’m trying to export the image as follows:

let settings = { format: “PNG”, suffix: ‘’, constraint: { type: “SCALE”, value: 1 }, contentsOnly: true };
let bytes = await rectangleNode.exportAsync(settings);

As a result, both the Image and the text are exported.
It turns out that the image is cropped to the Frame, but only the visible part of the Image is needed.

how to export correctly?

This topic has been closed for replies.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings