note 45087 rejected from function.imagecopymerge by aidan

From: Date: Thu, 26 Aug 2004 01:33:04 +0000
Subject: note 45087 rejected from function.imagecopymerge by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75265@lists.php.net to get a copy of this message
Note Submitter: dave dot phoenix at gmail dot com ---- I have this <?php $background = imagecreatefrompng("../images/border/simple_black.png"); $insert = imagecreatefrompng("../images/icons/xp.png"); $insert2 = imagecreatefrompng("../images/icons/xp.png"); $insert_item1 = imagecreatefrompng("../images/items/angelic_boots.png"); // Either a color at a specific point on the image // imagecolortransparent($insert,imagecolorat($insert,0,0)); // or a specific color (the color I used is magenta, #ff00ff) // ------------------------------- Donated imagecolortransparent($insert,imagecolorexact($insert,255,0,255)); $insert_x = imagesx($insert); $insert_y = imagesy($insert); // As said above, you can't use imagecopy (bug?) imagecopymerge($background,$insert,40,75,0,0,$insert_x,$insert_y,100); // ------------------------------- Bought imagecolortransparent($insert2,imagecolorexact($insert2,255,0,255)); $insert_x2 = imagesx($insert2); $insert_y2 = imagesy($insert2); imagecopymerge($background, $insert2,118,75,0,0,$insert_x2,$insert_y2,100); // ------------------------------- Item 1 imagecolortransparent($insert_item1, imagecolorexact($insert_item1,255,0,255)); $insert_x3 = imagesx($insert_item1); $insert_y3 = imagesy($insert_item1); imagecopymerge($background,$insert_item1, 12,15,0,0,$insert_x3,$insert_y3,100); // imagejpeg or imagepng doesn't matter here imagejpeg($background,"",100); imagedestroy ($background); ?> In IE it works fine. In Firefox I get garbage back...why is that?

« previous php.notes (#75265) next »