Skip to main content
Question

SVG node.exportAsync bug with image fill position


Darren4

Good morning @Figma

I am experiencing a bug with Figma’s node API exportAsync when format is SVG_STRING. If you have an image fill and position the fill so its smaller than the containing node dimensions the exported SVG string incorrectly sets the css transforms value for image positioning.

This image highlights the issue where you can see the exported SVG as a white area on right side of SVG because the css transforms values are incorrectly calculated.

Here’s a link to a Figma design file that reproduces the issue:
https://www.figma.com/design/e2y0xU3X5duxDuYbIByacQ.

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