Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Addons (http://www.pixelpost.org/forum/forumdisplay.php?f=13)
-   -   "addon": Watermark (http://www.pixelpost.org/forum/showthread.php?t=1704)

fantastic.poison 08-03-2005 03:55 AM

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...

Connie 08-03-2005 06:22 AM

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)

raminia 08-03-2005 07:58 AM

wow!
when 1.5 arrives make a clean PP's admin addon from it please.
:)
but it's now basically a mod.

raminia 08-03-2005 08:02 AM

Re: "addon": Watermark
 
Quote:

Originally Posted by fantastic.poison

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...

yeah it stopped working some time before a month ago. I don't know why either.

Thanks again:)

raminia 08-04-2005 06:06 AM

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.

Connie 08-04-2005 06:19 AM

@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!

raminia 08-04-2005 01:49 PM

@ 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" ...)

Connie 08-04-2005 02:09 PM

yepp, but fantastic.poison has written this addon nearly, so he should do it ;=)

fantastic.poison 08-04-2005 09:26 PM

yeah, okay
 
Quote:

Originally Posted by Connie
yepp, but fantastic.poison has written this addon nearly, so s/he should do it ;=)

as mentioned, this is a "stopgap." i didn't actually write it, just adapted it very slightly to PP. since utok's mod already strips out the EXIF data, i didn't consider this, but i will begin development of a real plugin now that includes this functionality. i'm not sure if it's possible to do it as a straight addon, but maybe a standalone script in the includes directory, and an addon to configure it.

raminia, you're right about the disallow. will get on that as well.

jdleung 02-16-2006 03:17 AM

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.