Menu

support of 3-digit hex color codes in svg

Help
2015-03-16
2015-03-22
  • Constantine

    Constantine - 2015-03-16

    I have an SVG image which is rendered correctly with Inkscape and other SVG viewers but not wxSVG. When I examined it I found that lines like
    style="stop-color:#aaa;stop-opacity:1"
    were problematic because wxSVG seems to interpret them as 6-digit hex color instead of 3-digit. So I wrote a little patch to fix that problem. It would be good to have this in the next release.

     
  • Constantine

    Constantine - 2015-03-16

    Patch against 1.5.3 version

     
  • Constantine

    Constantine - 2015-03-16

    Testcase image. Taken from default ubuntu icon theme.

     
  • NtAlex

    NtAlex - 2015-03-22

    Thanks for the patch. It's applied in wxSVG 1.5.4.

     

Log in to post a comment.