![]() |
Watermark Attached Images
This hack adds a watermark to attached images. The watermark, as specified by your own .png image, is added on image download, not when the image is attached. Requires GD2. Do not even try installing if you don't have GD2.
|
A watermarked image (image and watermark shrunk in Photoshop):
|
This could be useful to prevent people from using my site as a sig host....
Little child: How many licks does it take to get to the center of the install Button? Old Owl: One, Two, *crunch*, Three. Announcer: The world may never know...... /me licks the install button |
any image added to any website is downloaded using right click so how will this work then ??
`Save Image as` |
This processes the image sent to the browser in any situation. It'll always be there, and there isn't anything the user can do about it short of faking a file extension (AFAIK).
|
Thanks alot!!! I am going to install right now!! You're the best :D
|
Pretty cool. I'll try it out. :)
|
Hmmm... I cannot delete those 2 lines because they are not there... what should I do?
Here is my attachment.php I am using 229 |
very nice :)
*clicks install |
question just to make sure I understand.
It doesn't add the watermark unless its downloaded? or lets say if i have images enabled to view in threads would it show the watermark as well? |
jdmuniverse, I can see you code fine,
it's under: PHP Code:
|
Oops, sorry bout that.... Is that the line I should delete?
Edit.. I see it now! Thanks! |
No, the code you are looking for is under that line i posted.
|
Quote:
|
It's not my picture...
|
nice hack turtle :)
|
He's actually Nibbler from Futurama now ;)
|
he'll always be our turtle :)
|
awesome. simply awesome.
|
Nice nibbler, I mean filby;):p
Satan |
Grrr... I have GD2 but still after installing this all my attatchments show up as little X's...
Could it be that my .png file wasn't the right type? |
Thanks for this one, Filburt!
Great! ;) |
Awesome job filb! This should help with preventing people from hotlinking attachments (not that I think they can anyway, since .htaccess things I've applied).
|
can anyone tell me if this shows the watermark on every image or only when the image is hotlinked
|
To my understanding, everytime the image is downloaded (viewed), you will get a watermark picture.I think (but don't quote me) it works for hotlinking as well as yoursite.
Anyway, how do you know if GD2 is enabled? Is there an easy way to find out? (I don't really know all the server details, I don't own the site/forum or anything.) Hopefully it's located somewhere on the site... |
I found out by simply emailing my host and confirming it that way...
Email=good :) Anyway, speaking of that I am using 2.2.9 and the code in attatchment.php is very similar.. Is that the reason this doesn't work for me? Has anyone else tried this in 2.2.9? What should I do? This is one of the coolest ideas ever and I can't use it :( |
I'm having a small problem with gif files... the watermark shows all screwy :) On jpg it works like a charm though... Any ideas?
Heres a gif to see what I mean... thanks again... |
Nice seat ;)
|
Not bad eh? LOL
|
GIF support in PHP is generally horrible. However, I have a solution (which I don't have time to implement but anyone with GD2 experience can):
1. Load the gif using imagecreatefromstring 2. Create a new image via imagecreatetruecolor of the same dimensions 3. Copy the entire gif onto the new image 4. Destroy the original gif The problem is likely a palette issue. |
Quote:
If thats the case I can't use this hack :( a lot of people upload wallpapers to my site and the watermark would damage them. |
has anyone got this working w/ 2.2.9, when i search for the stuff it says to find it cant find it. Ive found similar code but wheni replace those w/ the new it doenst work.
|
Very cool hack. :)
|
Quote:
|
this is a great hack filburt, thank you
|
An awesome idea filburt! :)
- miSt |
fantastic hack filbert and probably the easy'st hack i have ever installed
*Mickie clicks install thanks again |
Anyone have problems with this in 2.2.9??? I can't get it to work and I do have GD2....
|
everyone thats posted so far w/ 2.2.9 is having a problem, im just getting red x's for my images when i install.
|
I have 2.2.9 and it is working fine... I had the same problem finding the code... read the first page and they told me where the lines were.
Delete the 2 lines below this... Quote:
|
All times are GMT. The time now is 01:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|