Salve a tutti/e,
deve essere una svista, ma non capisco perchè non funzioni:
Cosa c'è che non va?Codice PHP:// Content type
header('Content-type: image/jpeg');
// Resample
$new_name = $name.$tn_width."x".$tn_height;
$src = imagecreatefromjpeg("uploads/$name");
$dst = imagecreatetruecolor($tn_width, $tn_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $tn_width, $tn_height, $width, $height);
imagejpeg($dst, $new_name, 100);

Rispondi quotando
