I wasn't sure whether to call this an addon (since it doesn't touch the index/admin code) or a mod (since it can't live in /addons), but I've just added a script & .htaccess file that generate a watermark on the fly for every photo in the /images directory.
Just create a watermark PNG, upload it & wrapper.php to /admin, then edit & upload .htaccess to /images.
I didn't actually write it, and don't like what on-the-fly image generation does to server loads, but it's a nice stopgap until I have time to write a real mod.
Mostly, I'm posting to find out why I couldn't add a screenshot to my entry in the developer's system? It says it's there, but doesn't show up...
please, keep in mind, when you write an addon, that the rule is
- additional files should sit together with the addon in \addon-folder
- or as subfolder in \addon
- or in \includes
- or in \includes\subfolder
if it's an addon, and only used for an addon, it should stay in \addon
if it's coming with an addon but could be used for many purposes it could sit in \includes (not preferred, go ahead reading..)
but: we suggest, prefer, ask, would like to have this as a rule maybe:
that everything what comes with an AddOn should stay in \addon-folder
so it is easy to install, delete, de-activate maybe
also for future enhancements!
also for support!
please think about that and change it
We try to get a clean directory-structure
about the image, I do not know, I never show up 8)
when 1.5 arrives make a clean PP's admin addon from it please.
but it's now basically a mod.
Re: "addon": Watermark
it needs some DISALLOW in the main .htaccess to avoid search engine bots to sure the image page.
and also disallowing the direcotry listing for the images folder at least.
I was thinking about watermarking on the fly when uploading the images to PP already some time ago, but when I experimented with GD-lib I found out that the EXIF-information in the image was gone after adding the watermark
so I'd like to know if your solution keeps the EXIF-info?
If not that should be thought over again, maybe extracting the EXIF-info temporary and adding it back to the image after watermarking
I would be glad to have that as an option, ADMIN/addon, that would be really great!
If you check my autoresize addon from Romain autoresize modification you can see that this autoresize function creates new jpg files and reinjects the EXIF info there. That could be a similar solution for other addons/modifications.
(you can fine it in the hacks and modification forum under title "yet another autoresize" ...)
yepp, but fantastic.poison has written this addon nearly, so he should do it ;=)
raminia, you're right about the disallow. will get on that as well.
It's doesn't work on my pc.
and the windows doesn't allow blank file name,which is .htaccess
|All times are GMT. The time now is 03:47 PM.|
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.