|
#1
|
|||
|
|||
|
Addon: Watermark
Hi all,
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. http://pixelpost.org/v1/index.php?x=...amp;details=97 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... Last edited by raminia; 04-09-2006 at 05:15 AM. |
|
#2
|
|||
|
|||
|
welcome here!
please, keep in mind, when you write an addon, that the rule is that either - 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) |
|
#3
|
||||
|
||||
|
wow!
when 1.5 arrives make a clean PP's admin addon from it please. ![]() but it's now basically a mod.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#4
|
||||
|
||||
|
Re: "addon": Watermark
Quote:
Thanks again
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#5
|
||||
|
||||
|
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.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#6
|
|||
|
|||
|
@fantastic.poison:
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! |
|
#7
|
||||
|
||||
|
@ Connie,
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" ...)
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#8
|
|||
|
|||
|
yepp, but fantastic.poison has written this addon nearly, so he should do it ;=)
|
|
#9
|
|||
|
|||
|
yeah, okay
Quote:
raminia, you're right about the disallow. will get on that as well. |
|
#10
|
|||
|
|||
|
It's doesn't work on my pc.
and the windows doesn't allow blank file name,which is .htaccess
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar |
| Post Reply |
| Thread Tools | |
|
|