Skip to main content
Question

Image export (REST) intermittently disregards variable mode

  • November 29, 2024
  • 0 replies
  • 18 views

Christoffer_Hedberg

In a certain scenario, only parts of the exported images use the correct variable mode.

Given this simple variable setup in a variable library file:

And this simple component in a component library file, utilizing the variables from the variable library file:

When I pull in the component from the component library file into the variable library file and set the page variable mode to β€œdark” the component looks like this in the file:

But when exported through the REST api, it looks like this:

Exporting it through the UI works as expected. This bug is seen for both svg and png.

How to reproduce:

  • Create a variable library file that supports two modes (light/dark) and publish them.
  • In a separate file, create a component using variables from the variable library file and publish it.
  • Import component onto page in the variable library file
  • Set entire page to alternative mode (dark)
  • Export image using REST api (/getImage)
  • See result.

0 replies

Be the first to reply!

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