![]() |
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. |
All times are GMT. The time now is 04:43 PM. |
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:
|