I need to display a bunch of images on a web page using AJAX. All of them have different dimensions, so I want to adjust their size before displaying them. Is there any way to do this in JavaScript?
Using PHP's getimagesize()
for each image causes an unnecessary performance hit since there will be many images.