I have a series of image which in display in a HTML page.
Some images are 150DPI some are 300DPI
The 150 DPI image Fit the HTML page the, 300 DPI image go out of page so i use Jquery to resize the image
$('#questionTable img').each(function() {
var width = $(this).width();
var height = $(this).height();
if(width> 1000)
{
$(this).width(function(i,w){ return w*0.6});
$(this).height(function(i,h){ return h*0.6});
}
});
The issue is i am resizing based on width is there a way to resize only 300 DPI images ?