Inkscape.org
Beginners' Questions Open a svg file shows blank rectangle but can show real image using Chrome
  1. #1
    Đức Tô Hồ Việt Đức Tô Hồ Việt @duc.to.ho

    Hello Inkscape community,

    Today I have strange issue with a svg file when I tried to convert it to png. When opening the svg file in Inkscape, it just show a white rectangle but opening it in Chrome is ok. I suspect that it is svg issue but I checked and the xml format is valid. Can you please check and advise?

    Thank you and I look forward to hearing feedback from you

    Uploaded 31Cb406220Ad92Fd5Eef2733Ffc62C43 Duration0
  2. #2
    Polygon Polygon @Polygon🌶

    There a 3 filters applied (<filter id="filter">); select all and ungroup - then go Filters->Remove Filters and there you have it back.

  3. #3
    Đức Tô Hồ Việt Đức Tô Hồ Việt @duc.to.ho

    Hello Polygon,

    Thanks a lot for your help, yes, it works. So I am not really sure that the issue is having multiple filter effects under the same filter tag? Because if I have each filter effect having its own filter tag, it is also ok

    Yours sincerely

  4. #4
    Polygon Polygon @Polygon🌶

    From the look I guess the filters are not nessecary and browser might ignore them completely in your set up. That's why they work there. So my question would be: Why the filters?

  5. #5
    Aero Aero @Aero◻️
    *

    The browser(s) is not ignoring the filter, you can toggle it on and off and it has a visible effect.
    Can you toggle the filter on and off in Inkscape (Selectors and CSS dialog) without crashing?

    Edit: Screenshot from Firefox added

    Screenshot 53
  6. #6
    Polygon Polygon @Polygon🌶

    From my testing the filters have no effect in Safari browser e.g., so I thought they were skipped during rendering. And they have a bad side effect in Inkscape hence I guess it's not done in Inkscape.

  7. #7
    Aero Aero @Aero◻️

    OP asked about Chrome.


    Looks like Safari has som nice tools too.
    https://developer.apple.com/safari/tools/
     

  8. #8
    Polygon Polygon @Polygon🌶

    I don't have Chrome but checked additionally in Safari which confirms it looks ok in Browser. Still in doubt about the used filters.

    And yes Safari has an awesome developer mode. I give gxxxxgle a wide berth wherever I can.

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Open a svg file shows blank rectangle but can show real image using Chrome