The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Watermarking Images
Ok, I have been working on a watermarking mod for my site. The way I have the mod setup on my old forum, it puts the username, along with site name in the watermark. This helped my users feel like they still owned their images (trust me even that was a battle!!)
So... I have taken the code I used on the old setup, and been working it together as a plugin. I have a hook set for 'attachment_complete', and this is the code I am using. PHP Code:
Now, this works good, and saves the 'watermark' file for each user. Here is my problem... it seems that VB relies on the filesize and maybe the hash entry in the DB. When I have this feature turned on, the image gets watermarked fine on the file system. The problem is, when you let VB try to display the image, it never works right. The image is cut short, by approximately the additional bytes of the watermarking. I tried for a test, manually update the size in the database for one file to the appropriate byte count, but it didnt seem to help. This makes me think that maybe the filehash is involved as well? Can anyone help me out here? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|