How do i use a transparent image in a transparent image using GD?

Posted by hogofwar on Stack Overflow See other posts from Stack Overflow or by hogofwar
Published on 2010-06-14T16:42:21Z Indexed on 2010/06/14 17:12 UTC
Read the original article Hit count: 234

Filed under:
|
|
|
|

I have tried every way I can find but the background is always black. Is there any way to keep the transparency of the first image when GD ises it in PHP?

I'm using imagecopymerge to use the image. though i am not sure if this is the right way.

imagecopymerge($dest, $char, 0, 0, 0, 0, 150, 300, 100);

The image is like so: http://filesmelt.com/dl/draw7.php.png

See that the background is black whereas the roginal picture was transparent as the modified picture should be aswell

© Stack Overflow or respective owner

Related posts about php

Related posts about image