![]() |
Applying a Filter in GD
In Rendair's thread about the wave effects for the reflections, somebody mentioned that you can apply overlay filters which affect the image below. So for example if I had a captcha image below, how could I apply a wave effect on the top to skew those letters?
What I'm trying to do is replicate the Gmail captcha image which is very simple, but merely skews the letters: ![]() |
Could you give me an example of the Google Mail Captcha system?
|
Can you not see the image in my original post? :-(
|
I believe they use Imagick, not GD. The reason for this is the object has a direct "distortImage" method, and I cannot find a similar filter for GD. This is by best guess.
PHP: Imagick::distortImage - Manual |
Quote:
Sorry a bit tired. |
Thanks for your replies. So in that case, what is Kalle going on about in this post?
|
I honestly have no clue, I'm not very experienced with GD. I do browse the manuals as I find questions though. From what I understand, as of PHP5, there's no predefined filter for waves or "wet floor"-like effects. imagefilter() is the function that applies a filter, but the defined constants don't include a wave filter.
Maybe they have a newer version? Edit: I think I found it, all the functions are hand made using the imagecopy() function. Some of the user contributed code is(authors bolded before the code): administrador(ensaimada)sphoera(punt)com PHP Code:
PHP Code:
|
| All times are GMT. The time now is 12:13 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0