Inkscape.org
Using Inkscape with Other Programs Gradient in Inkscape is not shown in browsers (chrome/ff/edge) and not in IA.
  1. #1
    InkBlot9 InkBlot9 @InkBlot9

    I have created a ring with a center bevel, which are two rings with gradients. The weird thing is that this renders the way I want it in Inkscape, but in Chrome, Firefox, Edge, and Adobe Illustrator, the gradient is not there, or it's very faint.
    What could cause this, and how can I make it so they are the same??

    I can't attach images here, so this question is also posted on Stackoverflow, with examples of the issue.
    https://stackoverflow.com/questions/72381165/why-is-the-browser-rendering-of-this-svg-gradient-different-in-inkscape-vs-brows

     

  2. #2
    Polygon Polygon @Polygon🌶

    Looks fine in Safari:

  3. #3
    Tyler Durden Tyler Durden @TylerDurden

    The lower face is not shaded.

  4. #4
    Tyler Durden Tyler Durden @TylerDurden
    *

    Should be darker than the lower/inner.

  5. #5
    Polygon Polygon @Polygon🌶

    Seems the grouping don´t work in browsers:

    Hhc2
  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    More like the transform is interfering. Ungrouping and regrouping removes the transform, and the gradients are respected.

     

    @inkblot9, cleaning the document removes thousands of unused defs.

  7. #7
    InkBlot9 InkBlot9 @InkBlot9
    *

    The ring doesn't have groups, maybe by grouping you mean layers? When I remove all the layers, I still don't get the outer shade, did you change something else as well?
    In the end I only have the "Outer" path left in the SVG, and still the path/shaded ring is different (much lighter) for me in browsers.

    https://svgshare.com/s/hm9

  8. #8
    Polygon Polygon @Polygon🌶

    Don´t get why my upload not appears above through the paperclip icon. Again:

  9. #9
    InkBlot9 InkBlot9 @InkBlot9

    Ah, yes, I get it now! I grouped the single path (I didn't know you could group a single object), then ungrouped it and saved it.

    Now it's the same. Many many many thanks!

     

  10. #10
    Polygon Polygon @Polygon🌶
    InkBlot9

    The ring doesn't have groups, maybe by grouping you mean layers?

    These are literally groups even when they are renamed to something:

     versus: 

  11. #11
    Tyler Durden Tyler Durden @TylerDurden

    Layers are actually groups... svg technically does not support layers, but Inkscape can replicate layer workflow and gui by xml wizardry. 

    Using the Objects dialog, layers can be toggled to simple group status and ungrouped/regrouped etc.

     

    Hhccleaned.Svg   Inkscape 2022 05 26 08 22 13
Inkscape Inkscape.org Inkscape Forum Using Inkscape with Other Programs Gradient in Inkscape is not shown in browsers (chrome/ff/edge) and not in IA.