SVG export LinearGradient wrong


#1

Latest version of Lunacy (5.9), exporting SVG with linear gradients doesn’t show well in a couple of parsers. It’s because LinearGradient is using non-percentage units for x1/y1/x2/y2 and offsets, instead it uses 0.0 … 1.0 range.

The spec also says default values in %: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/linearGradient#Attributes

Please use % for this. Thanks! :slight_smile:


#2

Kindly bumping this one! :slight_smile:


#3

Sorry for not answering you right away - we needed to check this properly :slight_smile:

It can be so that the issue is not with the percentage units but with the parsers themselves. Can you send us any examples of the SVG that are not exported correctly so we could check them on our end? You can send to lucancy@icons8.com

Though it seems like using percentages might be a more versatile solution, so thanks for suggesting this! We’ll create a task and take it to work as soon as possible.

Btw, Lunacy 6.0 is already up on our website with many fixes applied!