watermark on the fly?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
ed209
Forum Contributor
Posts: 153
Joined: Thu May 12, 2005 5:06 am
Location: UK

watermark on the fly?

Post by ed209 »

on my site I need to store images submitted by various users. Some of them will want to apply a watermark, but I'd like to keep a copy on the server incase there is a need to use a non-watermarked version of a particular image.

I guess my 2 options are:

1. Watermark the default image on upload, store a non-watermarked version on the server.
2. Upload the file, but only watermark it when it has been requested, if requested with a watermark.

Most pages will only require 1 watermarked file, but some pages may have a slide show requiring 20+ images (loaded into a flash app) some watermarked, some not - depending on the user.

Option 2 would also require me to store the watermark information in the database for each image.


What would you do? Thoughts appreciated.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

I would use the dynamic approach...but I guess it depends on how complex your watermark is...
Post Reply