In IE it does not scale down huge images. In fact, it scales some but not all. I scale them down by setting small width and height attributes. How to fix it?
I do it as follows:
var $image = $('<img/>');
$image.attr('src', 'http://example.com/img.jpeg');
$image.load(function () {
this.width = this.height = 100;
});
Something like that. But not all images get scaled down. And, every time I reload the page different images get scaled down.
I have found out what the matter is. Please refer to img onload doesn't work well in IE7
IE 6&7 only fire "load" if they actually have to get the image from the server -- they don't if the image is already in local cache.
, Jeremy Wadhams wrote.