Précédent   Forum des professionnels en informatique > PHP > Bibliothèques et frameworks > Images > Imagick
Imagick Forum d'entraide pour l'extension Imagick permettant de manipuler des images en PHP (port de l'API ImageMagick).
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 22/08/2006, 20h26   #1
Membre du Club
 
Avatar de bibom
 
Étudiant
Inscription : juin 2005
Messages : 83
Détails du profil
Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : juin 2005
Messages : 83
Points : 63
Points : 63
Par défaut [ImageMagick] Problème de PNG

Bonjour à tous

Alors voila j'ai le code suivant

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
header ("Content-type: image/jpeg");  
header ("Content-type: image/png"); 

$fichier_source = ''.$image.''; 
$fichier_copyright = "images/logo.png"; 

$im_source = ImageCreateFromJpeg ($fichier_source); 
$im_copyright = ImageCreateFromPng ($fichier_copyright); 

$larg_destination = imagesx ($im_source); 

$larg_copyright = imagesx ($im_copyright);
 
$haut_copyright = imagesy ($im_copyright); 

$haut_destination = imagesy ($im_source);

$x_destination_copyright = $larg_destination - $larg_copyright;

$y_destination_copyright = $haut_destination - $haut_copyright;

imageCopyMerge($im_source, $im_copyright, 
            $x_destination_copyright, $y_destination_copyright, 0, 0, $larg_copyright, 
            $haut_copyright, 100);

imagepng ($im_source,'/images/photo/'.$description.'',90);
?>
Il fonctionne bien en lui meme en faite il permet de mettre un logo (png) en bas d'une image (jpeg)

Seulement voila se que j'obtient :



Alors que mon image d'origine est celle la :



Il ne gère pas la transparence et il mélange toutes les couleurs .

Merci pour votre aide
bibom est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/08/2006, 10h48   #2
Membre du Club
 
Avatar de bibom
 
Étudiant
Inscription : juin 2005
Messages : 83
Détails du profil
Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : juin 2005
Messages : 83
Points : 63
Points : 63
Personne pour m'aider ?
bibom est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 07h54.


 
 
 
 
Partenaires

Hébergement Web