par
Invité » 13 nov. 2005, 23:05
salut
je voudrai redimensionner mon image.php et l enregistrer sous image.jpg
j ai ce code
<?
header ("Content-type: image/jpeg");
$source = imagecreatefromjpeg("fond3.jpg");
$destination = imagecreatetruecolor(250, 100);
$largeur_source = imagesx($source);
$hauteur_source = imagesy($source);
$largeur_destination = imagesx($destination);
$hauteur_destination = imagesy($destination);
imagecopy($destination, $source, 0, 0, 0, 0, $largeur_destination, $hauteur_destination, $largeur_source, $hauteur_source);
imagejpeg($destination, 'mini_fond.jpg');
?>
ca me marque
L'image «
http://www.mloolm.com/essaisimage.php » ne peut être affichée, car elle contient des erreurs.
ca me cree mini_fond.jpg mais c est tout noir
quelqu un aurait il 1 solution a mon problemes
merci d avance
@+
mloolm
salut
je voudrai redimensionner mon image.php et l enregistrer sous image.jpg
j ai ce code
[php]<?
header ("Content-type: image/jpeg");
$source = imagecreatefromjpeg("fond3.jpg");
$destination = imagecreatetruecolor(250, 100);
$largeur_source = imagesx($source);
$hauteur_source = imagesy($source);
$largeur_destination = imagesx($destination);
$hauteur_destination = imagesy($destination);
imagecopy($destination, $source, 0, 0, 0, 0, $largeur_destination, $hauteur_destination, $largeur_source, $hauteur_source);
imagejpeg($destination, 'mini_fond.jpg');
?>[/php]
ca me marque
L'image « http://www.mloolm.com/essaisimage.php » ne peut être affichée, car elle contient des erreurs.
ca me cree mini_fond.jpg mais c est tout noir
quelqu un aurait il 1 solution a mon problemes
merci d avance
@+
mloolm