Page 1 sur 1

Librairie gd, Header

Posté : 27 janv. 2007, 14:02
par Shekhmet
<?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?

Posté : 27 janv. 2007, 14:03
par HD
un bonjour-merci ne fait pas de mal :?

Posté : 27 janv. 2007, 14:07
par Shekhmet
Excuse moi, je suis dans mon tripe avec mon problème et j'en oublie les bonnes manières
Bijour =)