Ci siamo quasi... ho ancora un problemino.
L'immagine visualizzata è un rettangolo nero (ma delle dimensioni giuste)
Mi sa che non copia dentro il codice dell'immagine
facendo echo $dest_image; ritorna Resource id #5codice:$maxx = $_GET["maxx"]; $maxy = $_GET["maxy"]; $source_image = $row['fdata']; $width=$row['fwidth']; $height=$row['fheight']; $percent1 = $width / $maxx; $percent2 = $height / $maxy; $percent = max($percent1,$percent2); $new_eight = round($height /$percent); $new_width = round($width /$percent); $dest_image = imagecreatetruecolor($new_width, $new_eight); imagecopyresampled ($dest_image, $source_image, 0, 0, 0, 0, $new_width, $new_eight, $width, $height); header("Content-type: image/jpeg"); imagejpeg($dest_image); imagedestroy($dest_image);

Rispondi quotando