Jump to content

External GD transparency


Xoom3r

Recommended Posts

Hey there, first the code piece and then explanation.

 

// ADD THE CHARACTER IMAGE
$imagestring = file_get_contents('http://3x.no-ip.org/GD/q1.php?n=' . $player);
$image2 = imagecreatefromstring($imagestring);
// TRANSPARENCY 
$trans = imagecolorallocate($im,255,2,255);
imagecolortransparent($image2,$trans);

This is the part of the code that's supposed to make the color #ff02ff (RGB: 255, 2, 255) of an external image, transparent.

But it doesn't seem to work, can you please help me figure why not?

Link to comment
https://forums.phpfreaks.com/topic/189298-external-gd-transparency/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.