Page 1 sur 1

creation de vignette

Posté : 13 nov. 2005, 23:05
par Invité
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

Posté : 14 nov. 2005, 00:06
par Truc
Salut, as tu activé la librairie GD pour utiliser ces fonctions ?!

Posté : 14 nov. 2005, 00:47
par Invité
oui