Skip to main content
Question

API : the SVG export is undeterministic when given 2 exact copies as inputs

  • December 7, 2024
  • 0 replies
  • 15 views

Vincent_Huss

Hi,

when i export nodes with node.exportAsync({format: 'SVG'})
I am then relying on a hash comparison of the content to know which ones are identical or differents.

This works well for ‘png’ and ‘jpg’, but with SVG, the content is different even though the 2 nodes are an identical copy.

When opening the 2 resulting svg files and looking at a diff, i see that there are some tiny differences related to float rounding (im attaching a screenshot of the diff)

Is this solvable ? is this a fatality ?
without the ability to recognize similar svg export, i won’t be able to propertly factorize my images exports.

And if nothing can be done about this, are the png / jpg indeed more deterministic as the few tests i did seem to indicate ?

Thanks if you have any inputs.
Best

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