Salve a tutti...
Perchè quando faccio così ridimensionamento GIF
IL file gif diventa fisso, non animato? perchè?
Mentre PNG diventa tutto nero?
Perchè quando faccio così ridimensionamento GIF
PHP:
$new_width_grande = 90;
$new_height_grande = $height * ($new_width_grande/$width);
$thumb_grande = imagecreatetruecolor($new_width_grande, $new_height_grande);
$source_grande = imagecreatefromgif("../../contenuti/". $_FILES['foto']['name'] ."");
imagecopyresampled($thumb_grande, $source_grande, 0, 0, 0, 0, $new_width_grande, $new_height_grande, $width, $height);
$foto_grande = imagegif($thumb_grande, "../../contenuti/foto/big/". $tipo_foto ."", 300);
IL file gif diventa fisso, non animato? perchè?
Mentre PNG diventa tutto nero?
PHP:
$new_width_grande = 90;
$new_height_grande = $height * ($new_width_grande/$width);
$thumb_grande = imagecreatetruecolor($new_width_grande, $new_height_grande);
$source_grande = imagecreatefrompng("../../contenuti/". $_FILES['foto']['name'] ."");
imagecopyresampled($thumb_grande, $source_grande, 0, 0, 0, 0, $new_width_grande, $new_height_grande, $width, $height);
$foto_grande = imagepng($thumb_grande, "../../contenuti/foto/big/". $tipo_foto ."", 300);
Ultima modifica di un moderatore: