How do I add watermark to image with watermark is png file?

duongca69

New Member
Messages
8
Reaction score
0
Points
1
I want add a png file into another image (watermark), but it not as I would like. can someone help me about this problem?

this is watermark image:
watermark.png


And this is output:
image-sp-eghnpuvy18.jpg
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
What are you doing right now? Please post the code you're using; you can use php bbcode tags to get proper formatting and syntax highlighting.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
It appears that the class doesn't support PNG watermarks with an alpha transparency (alpha channel); it expects either a flat image (an image with no transparency) or palletted transparency (where one colour is set to transparent, like a transparent GIF). As written, I'm not sure even palletted transparency would work. There are no calls to imagesavealpha(), for instance, and no tests to see if the watermark image has an alpha channel. (In other words, it's not exactly fully-featured code.) I'll have to play with it a bit -- but it really is bedtime for Bonzo right now. (If you can't wait, you can always look for a better script/class to use.)
 

duongca69

New Member
Messages
8
Reaction score
0
Points
1
I am looking a another script. But I'm not see it. Please help me if you can
 
Top