|
Comments for: rasmus19990124
| Message # 1024706: |
|
Date: 03/17/05 07:56
By: goph-R Subject: How can i make watermark with 24bit? Hi everybody! My problem is the next: I want to make a watermark to an image. My currently code is: <?php set_time_limit(0); $filename="1.jpg"; $filename2="wm.png"; $sourceid=imagecreatefromjpeg($filename); $watermarkid=imagecreatefrompng($filename2); $white=imagecolorallocate($watermarkid, 255, 255,255); ImageColorTransparent($watermarkid,$white); $meret=getimagesize($filename); $width=$meret[0]; $height=$meret[1]; $meret2=getimagesize($filename2); $watermark_width=$meret2[0]; $watermark_height=$meret2[1]; imagecopymerge($sourceid, $watermarkid, $width-$watermark_width, $height-$watermark_width, 0, 0, $watermark_width, $watermark_height, 100); imagepng($sourceid,"uj" . $filename); imagedestroy($sourceid); imagedestroy($watermarkid); echo '<img src="' . "uj" . $filename . '">'; ?> But, the "wm.png" is a 24bit PNG, and the program is not works. The GD is support this type of PNG? |
Previous Message | Next Message |


