I have a PHP script that will insert a watermark dynamically, but I'm not sure how we can integrate it into the Wiki software.
The way it works is that in place of the url in the
Code:SRC
attribute of the
Code:<IMG>
tag, the script is referenced in place of the actual file.
I.E.: in stead of
Code:<IMG SRC="my_photo.jpg">
you would have
Code:<IMG SRC="watermark.php?photo=my_photo.jpg">
Another option would be to hardcode a function call (to a function that inserts a watermark) into the script that handles uploading and saving of images, as well as the script that generates and saves the thumbnails.
I may be able to hardcode this myself. I'll download a copy of the WikiMedia software and see if I can get it to work on my computer. I'll send Craven the modified scripts when I've figured it out.