Guizmo 66
| Posté : 20-08-2003 11:21
voici mon code mais je ne sais pas comment l'adapter
<?php
header("!content-type:! image/jpeg")
$fichierSource = "echo $row['image']"; c'est là le prbl !!!!!!!!!!
$largeurDestination = 200;
$hauteurDestination = 150;
$im = @ImageCreateTrueColor ($largeurDestination, $hauteurDestination)
or die ("Erreur lors de la création de l'image");
$source = ImageCreateFromJpeg($fichierSource);
$largeurSource = imagesx($source);
$hauteurSource = imagesy($source);
ImageCopyResampled($im, $source, 8, 8, 0, 0, $largeurDestination-(2*8), $hauteurDestination-(2*8), $largeurSource, $hauteurSource);
ImageString($im, 0, 12, $hauteurDestination-18, "$fichierSource - ($largeurSource x $hauteurSource)", $blanc);
$miniature = "mini_$fichierSource";
ImageJpeg ($im, $miniature);
echo "$miniature";
?>
merci |