Skip to main content
Solved

Keeping Text in SVG when using REST API

  • August 24, 2022
  • 8 replies
  • 1223 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.

This topic has been closed for replies.

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
  • 1 reply
  • December 12, 2022

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
  • 1 reply
  • Answer
  • September 18, 2023

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