exported image color #33
-
Beta Was this translation helpful? Give feedback.
Answered by
vinothpandian
Aug 18, 2021
Replies: 1 comment 1 reply
-
That's a very interesting find. The underlying logic to convert SVG sketch to PNG for download is by rendering it on the web canvas. This issue might be due to rasterization. Can you try exporting it directly as SVG and then rasterizing it in python? Maybe you can use svg2png function in cairosvg for better rasterization. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vinothpandian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's a very interesting find. The underlying logic to convert SVG sketch to PNG for download is by rendering it on the web canvas. This issue might be due to rasterization.
Can you try exporting it directly as SVG and then rasterizing it in python? Maybe you can use svg2png function in cairosvg for better rasterization.