Codice PHP:
list($width1$height1) = getimagesize($cartella.$prime2[0]);
list(
$width2$height2) = getimagesize($cartella.$prime2[1]);
echo 
"<img src=\"$cartella$prime2[0]\" style=\"width:".$width1."px; height:".$height1."px;\" alt=\"".substr($prime2[0],0,strrpos($prime2[0], '.'))."\" title=\"".substr($prime2[0],0,strrpos($prime2[0], '.'))."\" />";
echo 
"<img src=\"$cartella$prime2[1]\" style=\"width:".$width2."px; height:".$height2."px;\" alt=\"".substr($prime2[1],0,strrpos($prime2[1], '.'))."\" title=\"".substr($prime2[1],0,strrpos($prime2[1], '.'))."\" />"