I am trying to figure out why my SVG icons are not displaying in Chrome. I am calling the svg
with a standard <image src=... />
, and I am able to see the image in dev tools (dev tools) and by visiting the direct path. I am also able to see the svgs in any other browser.
I've tried:
- Saving the svg in Illustrator with "Embed" instead of "Link" : Chrome not rendering SVG referenced via <img> tag
- Explicitly registering SVG mime type
- Using Rails'
<%= image_tag %>
ERB helper - Using SVG export settings suggested by Adobe: http://www.adobe.com/inspire/2013/09/exporting-svg-illustrator.html
Here is my view:
<a class="collapsed accordion-box">
<div class="panel-heading">
<img class="collapse-bullet" src="<%= asset_path 'blue-right-bullet.svg' %>"/>
</div>
</a>
Edit:
Found that other random SVGs show up fine:
- This one is working: https://goo.gl/Hcs7Sx (white on white)
- This one does not: https://goo.gl/WGkY3r
Both are called with <img src="..."/>
via the <%= image_tag %>
helper