Macaw icon indicating copy to clipboard operation
Macaw copied to clipboard

Wrong SVG rendering

Open sam-moshenko opened this issue 5 years ago • 5 comments

This SVG file is rendered with errors: http://s000.tinyupload.com/?file_id=51455686831478467750 The image shows how Macaw displays it(top), and how it should be(bottom): image I see two problems here:

  1. Gradient is rendered just as plain black, not green to white as it should be
  2. Path of the gradient is wrong, it should go all the way to the bottom instead of going right from end of path to beginning

Is there any workarounds these errors? Will it be fixed?

thanks for the Cocoapod anyway, it is pretty cool

sam-moshenko avatar Oct 16 '19 18:10 sam-moshenko

Hi, @sam-moshenko, one of the problems related to the wrong gradient stops parsing, I will try to fix this soon, also you can always help by sending a PR.

amarunko avatar Nov 20 '19 18:11 amarunko

Fix for gradient stops - https://github.com/exyte/Macaw/pull/638

amarunko avatar Nov 20 '19 19:11 amarunko

After merging PR linear gradient parsed correctly, but black parts are still there. Looks like a rendering issue.

ystrot avatar Nov 28 '19 10:11 ystrot

Honestly, I didn't find any white fill for all SVG/Group, only fill = "none", which one btw not parsed, but shouldn't affect anything for this SVG, maybe I missed something.

amarunko avatar Nov 28 '19 15:11 amarunko

Maybe this is too late but I had the same issue and adding a transparent fill to the path in the SVG solved the problem

miguelc95 avatar Apr 29 '21 19:04 miguelc95