MobileSafari not returning the right image size info via JavaScript
问题 I have an HTML test page for this issue here. For some reason MobileSafari is reporting the Image.width/height properties of any image with more than 1700 pixels as half its value . That is, the width property of the JPG is, say, 2000 but MobileSafari JavaScript reports it as 1000. If I try the same code with a 1700px-wide image I get the correct width. The test I did loads two images (same image in different dimensions) and displays the JavaScript size values. I tried in: Chrome 22, Safari 5