SVG

Image.onload returns 0 for width/height of SVG image in 1E11

Author - Pawandeep Kaur
|
0 Comments
|

Problem: Image.onload returns width/height of SVG images “0” in 1E11:

When you try to get size of svg image file using “image.onload” event, this returns exact file size in all browsers (Firefox, Chrome, Safari) except IE11. It returns 0 for width and 0 Read more…