how to determine the size (in kb) pictures / images?
size width and length of work:
and how to determine precisely the size of the picture in the kb?
seemingly CSS DOM keeps this ...?
very desirable to determine the size of Javascript ...
size width and length of work:
Code:
var newImg = new Image();
var height, width;
newImg.onload = function() {
height = newImg.height;
width = newImg.width;
};
newImg.src = 'file://localhost/usr/home2/di/11/p/29/1.jpg';
var height = newImg.height;
var width = newImg.width;
var size = newImg.size;
alert ('The image size is '+size+'*'+height);
$(".info").html( " "+width+" x "+height+", "+size+" Кбайт ");
and how to determine precisely the size of the picture in the kb?
seemingly CSS DOM keeps this ...?
very desirable to determine the size of Javascript ...