Skip to main content
Solved

Keeping Text in SVG when using REST API

  • August 24, 2022
  • 8 replies
  • 1188 views

David_Altreiter_privat

I am currently requesting an SVG of my Frame using the REST APIs GET/v1/images/:key
route.
I noticed that the text used there gets outlined, resulting in paths.
I would like to manipulate that text content and would need them to stay <text> elements.

Is there a way to use the same option as in the UI to disable outlined text?

image

Best answer by Love_Olsson

The query parameter is “svg_outline_text=false”, for anyone looking.
It’s still undocumented, but found it by trial and error.

View original

8 replies

Mohamed_Mortada

This needs to happen, how come it’s not an API feature yet?


JohnPhamous_V

I would also like Outline Text as an argument in the API. Our use case is to allow users to programmatically create variations of an image designed in Figma.


JohnPhamous_V

Bumping this.


Tobias_Lins

That would be so neat to have!


  • 1 reply
  • March 17, 2023

need this too!


Definitely need this feature.


  • 1 reply
  • July 29, 2023

Feature available yet?


Love_Olsson

The query parameter is “svg_outline_text=false”, for anyone looking.
It’s still undocumented, but found it by trial and error.


Reply


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