News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gonzalo Ayuso's Blog:
Watermarks in our images with PHP and Gearman
March 07, 2011 @ 12:12:17

Gonzalo Ayuso had previously shown how to dynamically add watermarks to your images with the help of a mod_rewrite rule. One of the side effects of this is that, with a high load on your server, things can get bogged down quite quickly. His alternative? Add the watermarks to your images with Gearman workers.

In this second solution I will use a gearman worker to generate the watermarks. The benefits of gearman is the possibility of use a pool of workers. We can add/remove workers if our application scales. Those workers can be placed even at different hosts, and we can swap easily from one configuration to another.

He includes some sample scripts to illustrate the process - a Gearman client that'll call the watermarking process and a worker that takes in the image and transforms it with GD to add a new layer for the watermark.

0 comments voice your opinion now!
watermark image tutorial gearman worker client


blog comments powered by Disqus

Similar Posts

Sudheer Satyanarayana's Blog: A Bit Of XML, RSS And CURL In 7 Lines Of PHP And A Useful Program

DeveloperTutorials.com: Floating Point Comparisons In PHP and Javascript

Vanessa Vasile's Blog:Using PHP to Extract Image Exif Data

SaniSoft Blog: Lambda functions and Closures in PHP 5.3c

WebReference.com: Database-enabled Ajax with PHP


Community Events





Don't see your event here?
Let us know!


release threedevsandamaybe list series introduction developer framework laravel conference code tips community api application zendserver language podcast deployment interview development

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework