Page 1 of 1

GD2 and watermarking images [solved]

Posted: Fri Jan 18, 2008 3:55 am
by php3ch0
I have a databse of over 10,000 books with covers a client wants me to make into an ecommerce site. He wants all the covers watermarked. I am considering using a php script to add the watermark every time the image is loaded.

I want to know if this process would use up a lot of processor time and make the web site run slow.

The most images that would be shown on one page is the search page that loads 20 products at a time?

Suggestions please

Re: GD2 and watermarking images

Posted: Fri Jan 18, 2008 4:43 am
by VladSun
It's much faster to have images watermaked at the upload time (or offline), instead watermaking them in real time (at view time). This way, you perform the watermark only once, at the expense of doubled storage space (in case you want to keep the original, unwatermaked images).

Re: GD2 and watermarking images

Posted: Fri Jan 18, 2008 4:57 am
by Inkyskin
I would batch mark the exising ones, and then re-upload them. Then watermark during upload for any new ones.

As VladSun says, watermarking on the fly can be quite slow.

Re: GD2 and watermarking images

Posted: Fri Jan 18, 2008 4:59 am
by php3ch0
Thats all OK but I do not fancy watermarking all the images offline, it would take me ages. Do you know of a tool that could do it in a batch. Then any new ones could be watermarked at upload time.

Re: GD2 and watermarking images

Posted: Fri Jan 18, 2008 5:00 am
by Inkyskin
Google is your friend: Click me!

Re: GD2 and watermarking images

Posted: Fri Jan 18, 2008 5:08 am
by php3ch0
Thanks People