[Watermark], different watermark for each user

franguy

Joined: 2009-12-15
Posts: 2
Posted: Tue, 2009-12-15 10:45

Hello,
Here is the thing.
I created a gallery and different users so specific people can view the images. No one can register.
I would like to add a watermark on the images depending on the user visiting the website. If an image is shown somewhere else on the web, I could know which user leaked it looking at the watermark on it. Each user would have his own watermark which would be added on the image dynamically when he visits.

I have a login page with the user name and password. I guess I have to add in the php file of the watermark plugin something like
if user=user1 then put watermark=user1 on image etc. I don t know how to code php so this is of course not proper code but just the idea.

Thank you !

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2009-12-15 11:05
Quote:
I don t know how to code php

I think you are going to have to learn then! Nobody is going to write the code for you, but we can help when you are up to speed with programming.

 
franguy

Joined: 2009-12-15
Posts: 2
Posted: Tue, 2009-12-15 12:46

I understand. Well hopefully I ll have time for this next year :)
Since the watermark plugin already exists, I thought it would be easy for someone who knows about coding to add this option. I guess I under-evaluated the work ! No worries then i ll try to find another way. I really don t have time to learn php at the moment.. and that s why I chose a ready to use gallery system !

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-12-15 19:15
Quote:
that s why I chose a ready to use gallery system !

Which has also underwent extensive and expensive security reviews :)

Just read your original request. Just a word of caution, you're going to KILL any server if you have more than just a few visitors. You're talking about editing and applying a different watermark to every image depending on who is logged in. That's crazy and I seriously doubt it could be done in Gallery (or any online photo software) as you're now talking about generating a special, unique image for every single visitor.

Example, you have 1000 photos (times 3 versions, 1 thumb, 1 resize, 1 full size) so you really have 3000 images. You have 1000 users. That means you're going to need to generate 3,000,000 unique photos for people (if you apply watermarks to every variation of the image). Even if you don't store them (which means you're going to have to rebuild them upon ever visit) that's a huge amount of processing and work you're asking the server to do.

Good luck :)

That's not going to be a simple mod. Gallery generates thumbnails, resizes and watermarked images and stores them on disk to serve up later. You're talking about generating images on the fly, that's going to be a painful and slow browsing experience for your users and resource intensive on the server.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2009-12-16 01:44

Why not just add some words depending on the user using css and JS. Not watermarks.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team