I have a SVG document with the image entry in it:
I did a little research and was unable to discover a property that you could enumerate to get the images actual width and height. However there was another approach which seemed interesting which included an xmlHttpRequest to get the image and enumerate it's dimensions.
That made me think of a slightly faster way. The solution is to utilize a hidden Just for grins (if it helps) here was a draft of some code for the xmlHttpRequest: If this doesn't solve your problem, I hope it will at least create some new ideas in solving it.) where you can enumerate width and height there. This pseudoCode For example:
var imgRequest =
function(sImgUrl, oRequestCallback){
var xhr = new XMLHttpRequest();
xhr.open('GET', sImgUrl, true);
xhr.onreadystatechange = oRequestCallback;
xhr.send(null);
};
var xhrImageRequest =
function(result){
var oImageDimensions;
//Create and append to