Lo script completo č abbastanza voluminoso , cmq:
Questo č lo script che crea le immagini(img_creajpg.php)
$temp = imagecreatefromjpeg($temp);
$black = @imagecolorallocate ($temp, 0, 0, 0);
$white = @imagecolorallocate ($temp, 255, 255, 255);
if(!$img_height==0){
$img_width=imagesx($temp)/imagesy($temp)*$img_height;
}
else if(!$img_width==0){
$img_height=imagesy($temp)/imagesx($temp)*$img_width;
}
$img_mini=imagecreatetruecolor($img_width,$img_hei ght);
imagecopyresampled($img_mini, $temp,0,0,0,0,$img_width, $img_height, imagesx ($temp), imagesy($temp));
header ("Content-type: image/jpg");
imagejpeg($img_mini, "", 60);
$temp="";

+ uno analogo per le png(img_creapng.php)

E questa č la parte dello script (pgalbum.php ) che le visualizza:
for ($i=1;..............
...........................
if($tipo[$i]=="jpg"){
echo"<td class='txtblu' valign='bottom' >". $i. "[img]img_creajpg.php?temp=". $temp[$i]. "&img_width=". $img_width. "[/img]
". substr($nome[$i],0,$len). "</td>";

if($tipo[$i]=="png"){
echo"<td class='txtblu' valign='bottom' >". $i. "[img]img_creapng.php?temp=". $temp[$i]. "&img_width=". $img_width. "[/img]
". substr($nome[$i],0,$len). "</td>";

for($w=0;$w<100000;$w++)// ciclo diritardo
{
$aa=$w; }
}
}