2
<img width="80" height="90"  src="/assets/images/shape.svg" />

I'm using a SVG inside a <img /> tag to display a shape with only a border. On non-retina (left) the SVG image isn't sharp, but on retina it is (right):

enter image description here

I also tried putting the SVG image in a <object>, but the same pixel border appears.. (suggested in: Do I use <img>, <object>, or <embed> for SVG files?).

Anyone with an explanation or fix for this, please? :)

Community
  • 1
  • 1
ronnyrr
  • 1,291
  • 2
  • 21
  • 43

0 Answers0