<img src= "… " onload= "autoresize(this) ">
function autoresize(obj){
if(obj.width> 800)
obj.width=800;
}
<img src= "… " onload= "autoresize(this) ">
function autoresize(obj){
if(obj.width> 800)
obj.width=800;
}