par
Shekhmet » 27 janv. 2007, 14:02
<?php
// --------------------------- MISE EN PLACE DU COPYRIGHT -------------------
header ("Content-type: image/jpeg");
//c'est juste pour mettre le fichier source en dynamique plus tard.
$images=$_GET['pic'];
$fichier_source = "Images/Photos/fee/DSCN0550.jpg";
$fichier_copyright = "Images/copyright_photos.gif";
$im_source = imagecreatefromjpeg ($fichier_source);
$im_copyright = imagecreatefromgif ($fichier_copyright);
$larg_destination = imagesx ($im_source);
$larg_copyright = imagesx ($im_copyright);
$haut_copyright = imagesy ($im_copyright);
$x_destination_copyright = $larg_destination - $larg_copyright;
imagecopymerge ($im_source, $im_copyright,
$x_destination_copyright, 50, 0, 0, $larg_copyright,
$haut_copyright, 60);
// on affiche notre image copyrightée
imagejpeg ($im_source);
?>
Ca m'affiche mon image en texte donc j'affiche ensuite mon image dans un img src sur une autre page, mais cela ne fonctionne pas, cela vient t'il du fait que je declare à mon serveur queje travaille en jpeg et que mon copyright soit un gif?
[php]<?php
// --------------------------- MISE EN PLACE DU COPYRIGHT -------------------
header ("Content-type: image/jpeg");
//c'est juste pour mettre le fichier source en dynamique plus tard.
$images=$_GET['pic'];
$fichier_source = "Images/Photos/fee/DSCN0550.jpg";
$fichier_copyright = "Images/copyright_photos.gif";
$im_source = imagecreatefromjpeg ($fichier_source);
$im_copyright = imagecreatefromgif ($fichier_copyright);
$larg_destination = imagesx ($im_source);
$larg_copyright = imagesx ($im_copyright);
$haut_copyright = imagesy ($im_copyright);
$x_destination_copyright = $larg_destination - $larg_copyright;
imagecopymerge ($im_source, $im_copyright,
$x_destination_copyright, 50, 0, 0, $larg_copyright,
$haut_copyright, 60);
// on affiche notre image copyrightée
imagejpeg ($im_source);
?>
[/php]
Ca m'affiche mon image en texte donc j'affiche ensuite mon image dans un img src sur une autre page, mais cela ne fonctionne pas, cela vient t'il du fait que je declare à mon serveur queje travaille en jpeg et que mon copyright soit un gif?