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?