You are here: Re: Ttransparent overlay watermark - on the fly? « PHP Programming Language « IT news, forums, messages
Re: Ttransparent overlay watermark - on the fly?

Posted by Rami Elomaa on 03/20/07 08:23

j.l.l@web.de kirjoitti:
> Rami Elomaa schrieb:
>> Chuck Anderson kirjoitti:
>>> Is it possible to overlay a transparent watermark on an image -
>>> dynamically?
>
>> Yeah, I've done this. What you do is you open image handles to both
>> files, the original image (imagecreatefromjpg) and the png watermark
>> (imagecreatefrompng), then combine them with either imagecopy,
>> imagecopyresampled or some other imagecopy* function that works best
>> for you. Just go ahead and try them.
>
> I've done one transparent overlay of two pictures, too, but found it a
> bit tricky to do.
>
> You have to be careful with using imagecopymerge. As i remember there is
> a parameter to allow transparency to be used.
>
> I wonder if different imagetypes can be used without any probs? Please
> tell if you have tested it, i'm curious about it.
>

Now I have to admit that it was over 4 years ago since I did the whole
watermarking thing, so I can't say I'm SURE it worked, but I don't
remember having any problems with it. It was just like I said: open two
image handles, one jpg, one png, then place the png on the jpg with
imagecopyresized. I found the original script I used back then and it
seemed very simple to begin with. I suppose I'd have to do some testing
with the script to see if it indeed worked like I'm thinking it did.

--
Rami.Elomaa@gmail.com
"Olemme apinoiden planeetalla."

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация