Jump to content

dvwyngaa

New Members
  • Posts

    2
  • Joined

  • Last visited

dvwyngaa's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. jazzman1, Thanks, I did that, but the script doesn't give any errors. I can view both the files (.png's) seperately, but as soon as I use imagecopy or imagecopymerge, the icon appears as a black block on top of the other. Dawid
  2. Hi, I want to add an icon (16x16px), black and white in .png format to an existing .png file with bunch of text. What I get is a black square on top of the image with the text. Neither of the images have any transparent background. The code I used is as follows: <?php $source=imagecreatefrompng("message.png"); $img_get=imagecreatefrompng("smiley1.png"); imagecopy($source,$img_get, 5, 12, 20, 20, 20, 20); header('Content-Type: image/png'); imagepng($source); imagedestroy($source); imagedestroy($img_get); ?> Any ideas why this doing this, the black squared instead of the actual icon picture (see attached screenshot)? Any suggestions welcome! Regards, Dawid
×
×
  • 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.