Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 08-03-2005, 03:55 AM
fantastic.poison Offline
forum loafer
 
Join Date: Aug 2005
Posts: 2
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.
Reply With Quote
  #2  
Old 08-03-2005, 06:22 AM
Connie
Guest
 
Posts: n/a
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)
Reply With Quote
  #3  
Old 08-03-2005, 07:58 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
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
Reply With Quote
  #4  
Old 08-03-2005, 08:02 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
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
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #5  
Old 08-04-2005, 06:06 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
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
Reply With Quote
  #6  
Old 08-04-2005, 06:19 AM
Connie
Guest
 
Posts: n/a
@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!
Reply With Quote
  #7  
Old 08-04-2005, 01:49 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
@ 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
Reply With Quote
  #8  
Old 08-04-2005, 02:09 PM
Connie
Guest
 
Posts: n/a
yepp, but fantastic.poison has written this addon nearly, so he should do it ;=)
Reply With Quote
  #9  
Old 08-04-2005, 09:26 PM
fantastic.poison Offline
forum loafer
 
Join Date: Aug 2005
Posts: 2
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.
Reply With Quote
  #10  
Old 02-16-2006, 03:17 AM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
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
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:47 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs