PDA

View Full Version : Social Group and Album Enhancements - Watermark Generator


Disasterpiece
05-17-2011, 10:00 PM
Quick Info

This mod adds a watermark to album and attachment images.
The watermark is customizable via image files or specified text.
Processed images are cached and the original files remain untouched, so you can modify or remove the watermark anytime you want.


Features

- Intelligent Caching
- Uses standard vBulletin methods, therefore no file modifications necessary
- Settings-Preview with a sample image in Adminpanel
- Generative plugin behaviour, works with most other mods which use the same hooks or use attachment images elsewhere

Installation

Step 1)

Upload files inside upload directory according to their structure:

> forum root
> admincp
+ pl_watermark_admin.php
> images
> misc
+ plwm_sample.jpg
> includes
> cron
+ pl_watermark_cron.php
> xml
+ cpnav_plwatermark.xml
+ pl_watermark_functions.php
+ pl_watermark_imagemanipulation.php


Step 2)

Import "product-plwatermark.xml" as addon into your vBulletin AdminCP


Step 3)

Navigate in your vBulletin AdminCP to PL Watermark Generator -> Plugin Settings.
Define the settings how you see fit. The options should be self-explanatory, if you need help with certain things, ask in the modification thread.


Changelog
v1.1
- Fixed potential security flaw on certain webserver configurations
- Improved install/updatescript
- (hopefully) fixed the grey-bar bug which occured on certain webserver configurations

v1.0
- Initial Beta Release

Additional Info

The Mod is currently in BETA. This means, that we tested it on a test environment (vb 4.0.x to 4.1.3) but has not yet undergo excessive stress test.
Keep an eye out for updated versions until the final release!
If you encounter any bugs, missing or misplaced features, let us know!

F.A.Q

- I don't see changes in my live images!
> To see changes on the image files you have to clear your browser's cache!
In firefox it's enough to force a fresh reload via STRG+F5 and on other browsers STRG+F5 or SHIFT+F5 should work.
If you don't perform this step, your browser will show the old cached version and maybe the watermark won't show or changes won't apply.

- My png/gif watermark isn't transparent, instead I get a black background!
> PNG-8 is known for having transparency problems, GIF in some cases as well.
Fall back to PNG-24 with Alpha channel (all modern image tools should be able to save as PNG-24)
If you have trouble creating a working png-24 with alpha channel, you can send me a PM with a link to your watermark and I'll convert it to png-24 for you.

- I have trouble with special characters or non-latin charactersets!
> The addon is using standard php functionalities for the text. If for any reason you have trouble with special chars, I suggest using a transparent png-24 with the text from an external image tool instead.

Support / Branding

We provide quality vbulletin software modifications for zero costs. To help our mod to be well-known, a backlink is added to your forum footer by the plugin, where the plugin is used in any way.
You must not remove the copyright/backlink code!
However, if you like to support us, you are allowed to remove the footer note with a small donation (10$ minimum).
If you choose to do so, we'll contact you via the email provided by paypal with instructions on how to remove the footer note.
A link to paypal donation service can be found on the top right area of this post.

Feel free to contact an author of the mod if you have any questions or suggestions.

Dr.osamA
05-18-2011, 02:43 AM
thank you bro

tested ,but for some unknown reason does not work
- attacment not showing
- not support Arabic incoding
- when i use Watermark Cache Management that give me => cant find phrase

BRB

TEMPESTADE
05-18-2011, 07:58 AM
tested ,but for some unknown reason does not work

inigo
05-18-2011, 09:33 AM
Problem with the png image, it looks completely black the rectangule of the image in the watermarked images.

v 4.1.2.

I am trying to test with text, but I prefer image watermark. with text, is it possible to put a % of the size of image instead of the size of the text? (because perhaps it was 300 px image and 1024 px other, so it´s difficult to give only one text size.

Thanks, great mod,

Disasterpiece
05-18-2011, 12:50 PM
@Dr.osamA:

Did you test the settings via preview first? Is the watermark rendered on the sample image?
Try the steps below so we can find out why your attachments aren't displayed.

@TEMPESTADE, inigo:

Is it possible that you don't have the GD lib installed?


To all others where the attachment doesn't show:
You can upload the testattachments.php file from this post into your forum root dir.
Then navigate to the file via browser and add the parameter i1 to it so it looks like this:

http://someforum.tld/forum/testattachments.php?i1=13

Replace 13 with any image id which is big enough so the watermark should be displayed!
Now if any errors occur, the script will output them, other than the attachment.php which disables error reporting completely. This way it's easier for me to pinpoint the problem.

inigo
05-18-2011, 01:26 PM
The GD lib is correctly running (I use it in vbgallery too:

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.7
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

The image appears in the correct place, with correct size, but is a black rectangule. Any other idea?

Thanks,

Disasterpiece
05-18-2011, 01:44 PM
The GD lib is correctly running (I use it in vbgallery too:

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.7
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

The image appears in the correct place, with correct size, but is a black rectangule. Any other idea?

Thanks,
Did you use a .png or a .gif for the watermark?
Did you set the alpha channel correctly?
If png: Is it a 8-bit png or a 24-bit png?

I attached a test image from which i know that the watermark generator can display. Can you test it out and tell me if it's applied correctly or has a black background too?

billstelling
05-18-2011, 01:48 PM
Awesome mod! Thanks..
129212

working on everything but cms article pages. works on promoted articles but mot ones created just for the front page and not originating from the forum.
cms/content.php/

inigo
05-18-2011, 02:58 PM
I have been testing, and the problem appears to be the PNG8, because the same image saved as PNG-24 is working.

Your test image was ok, but with no trasparency.

So the problem is solved, PNG-24 working, but I have to do more tests, because there are some of the images without watermark,... and I think is because the browser's cache.

so I will tell you when I can test deeply,

Thanks,

Stefan118
05-18-2011, 04:40 PM
Works great in vB 4.1.3!!!
Thanks!

Been looking for this for over 2 years now

Stefan118
05-18-2011, 07:06 PM
1 idea...
Is it possibe to also watermark the INLINE pictures added to a post?

As far as i can see, only the attached pictures are watermarked.
I have now disabled inline attachements on my forum.

Disasterpiece
05-19-2011, 10:04 AM
I have been testing, and the problem appears to be the PNG8, because the same image saved as PNG-24 is working.

Your test image was ok, but with no trasparency.

So the problem is solved, PNG-24 working, but I have to do more tests, because there are some of the images without watermark,... and I think is because the browser's cache.

so I will tell you when I can test deeply,

Thanks,
Yes, PNG-8 seems to be a problem right now, I'll look into it.
Sadly, the php functions for image prcessing are limited, so its hard to find advanced tools without relying on external libaries not everyone has.

For now, PNG-24 should work with full transparency, so I recommend to use it, also for the case if you run into charset issues with non-latin characters.

1 idea...
Is it possibe to also watermark the INLINE pictures added to a post?

As far as i can see, only the attached pictures are watermarked.
I have now disabled inline attachements on my forum.

I was sure that the inline post uses the same attachment method. Which inline-images do you mean?
Those where people simply attach an image, grab the url to the fullsize picture and add that to the post?
Or do you mean linking images from 3rd party sites?


Quick note: To see changes on the image files you have to clear your browser's cache!
In firefox it's enough to force a fresh reload via STRG+F5 and on other browsers STRG+F5 or SHIFT+F5 should work.
If you don't perform this step, your browser will show the old cached version and maybe the watermark won't show or changes won't apply.

goxy63
05-19-2011, 04:56 PM
How this affects images that user chooses as background image for his profile?

Stefan118
05-19-2011, 05:01 PM
I was sure that the inline post uses the same attachment method. Which inline-images do you mean?
Those where people simply attach an image, grab the url to the fullsize picture and add that to the post?
Or do you mean linking images from 3rd party sites?


Quick note: To see changes on the image files you have to clear your browser's cache!
In firefox it's enough to force a fresh reload via STRG+F5 and on other browsers STRG+F5 or SHIFT+F5 should work.
If you don't perform this step, your browser will show the old cached version and maybe the watermark won't show or changes won't apply.

At the folowing link (second post) you can see what i ment with inline attachments.

http://www.papegaaienforum.nl/showthread.php?243444-De-Moderatoren-stellen-zich-aan-u-voor.

Disasterpiece
05-19-2011, 05:44 PM
How this affects images that user chooses as background image for his profile?
That is a good question, didn't think of that. I'll check it out and update if necessary.

At the folowing link (second post) you can see what i ment with inline attachments.

http://www.papegaaienforum.nl/showthread.php?243444-De-Moderatoren-stellen-zich-aan-u-voor.

Well, they're external links, which means these images aren't hosted on your server. So there is no need to (and in fact, you shouldn't) add a watermark to it, because they aren't "yours".

Stefan118
05-19-2011, 09:07 PM
Ok, i thought it was becouse the member has put the image between the post, instead of an attachment.

But indeed, after i have read your last post i figured out they are indeed external.

Thanks for clearing that out !

ndut
05-19-2011, 11:03 PM
thank you

dang3rzon3
05-20-2011, 09:19 AM
it works with cms article?

Disasterpiece
05-20-2011, 12:50 PM
it works with cms article?

Im not sure if the cms uses the default attachment system or their own.
Also i still don't own the vb suite so i cant test it myself

inigo
05-20-2011, 02:52 PM
it works with cms article?

Yes, you can see it working here:

http://www.cochesrc.com

I wanted to the CMS section.

Big-Pete
05-20-2011, 05:59 PM
Great Mod, But I can't get it to work with VBSEO when using a CDN, when i attach images they don't show, when looking at the properties of the image it shows that they are stored on the CDN..

Disasterpiece
05-20-2011, 06:03 PM
Great Mod, But I can't get it to work with VBSEO when using a CDN, when i attach images they don't show, when looking at the properties of the image it shows that they are stored on the CDN..

I'm sorry, what is a CDN?

BadgerDog
05-21-2011, 05:41 PM
Installed with thanks for testing on our 4.1.3 development forum ....

Unfortunately, no watermarks (file or text) type appear on any pics in our forums ... :confused:

Have flushed cache and done all of those things .... ;)

Any help would be appreciated ... :up:

Regards,
Doug

Disasterpiece
05-21-2011, 08:21 PM
Installed with thanks for testing on our 4.1.3 development forum ....

Unfortunately, no watermarks (file or text) type appear on any pics in our forums ... :confused:

Have flushed cache and done all of those things .... ;)

Any help would be appreciated ... :up:

Regards,
Doug
Hi

In the adminCP, does the watermark appear on the sample image?

Did you specify a cache directory and does cache files appear in this directory?

BadgerDog
05-21-2011, 09:15 PM
In the adminCP, does the watermark appear on the sample image?

No, no image appears there at all, but during the Preview Mode, no image is diaplayed at all either, which I thought was odd because the instructions refer to the "image below" and it's not there. :confused:

Did you specify a cache directory and does cache files appear in this directory?

Yes, setup and specified a cache directory which appears to be accepted. No, there are no files in the cache directory. Also, in the Cache Stats screen if check yes and hit submit, I get a phrase missing error. See attached pic

Regards,
Doug

Disasterpiece
05-21-2011, 10:21 PM
The cache directory doesn't seem complete to me, are you sure that's either a full path starting with a "/" and the directory exists and is writable or a relative path to the forum root dir starting without a "/" ? (Usually the web directory is somewhere around /var/www/htdocs/ or /var/www/vhosts/domain.tld/httpdocs, so it looks a bit odd to me)

The missing phrases don't have any impact on the functionality, it's just localized text which isn't found. That's something I'll fix in the next version.

If the cache directory isn't the problem, follow the instructions in this post: https://vborg.vbsupport.ru/showpost.php?p=2197142&postcount=5
If there are error messages, they can be displayed via this script.

BadgerDog
05-21-2011, 10:44 PM
Cache full path is there.... I just removed the front part for security reasons showing it public here.

I'll try the instructions in the other post tomorrow and let you know.

Thanks for the help. :)

Regards
Doug

BaanFarsang
05-22-2011, 06:06 AM
Problems on VB4 which installed of vB Optimise, all cache flushed too.

Stefan118
05-22-2011, 09:22 AM
haven't tried it, but maybe you have to set your cache directory to 777 (writable)
I did that at forehand, and it works on my vB 4.1.3

BadgerDog
05-22-2011, 09:37 AM
Hi ... :)

Ok, the output is an SQL error. For security and privacy, I have replaced our site name with xxxx's.

Database error in vBulletin 4.1.3:

Invalid SQL:
SELECT varname, value FROM plwmsettings;

MySQL Error : Table 'xxxxx.plwmsettings' doesn't exist
Error Number : 1146
Request Date : Sunday, May 22nd 2011 @ 06:30:30 AM
Error Date : Sunday, May 22nd 2011 @ 06:30:30 AM
Script : http://www.xxxx.com/testattachments.php?i1=22804
Referrer :
IP Address : xx.xx.xxx.xxx
Username : Tester
Classname : vB_Database
MySQL Version : 5.0.77

The SQL error doesn't appear when I run the "Preview" or try to view the same attachment with the mod's code, just run I run your special testattachments.php program.

By the way, I have re-installed the mod twice just in case something went wrong with the original install.

Does this help?

Regards,
Doug

Disasterpiece
05-22-2011, 01:53 PM
Problems on VB4 which installed of vB Optimise, all cache flushed too.
Hi

Can you elaborate how the problem shows itself?

Do you see no watermark, do the attachment images appear or not?

Does the admincp settings page show any warnings or errors?

Do you see the sample image with watermark on it? It should appear in the admincp plugin's settings at the bottom of the page.
haven't tried it, but maybe you have to set your cache directory to 777 (writable)
I did that at forehand, and it works on my vB 4.1.3
Right, the cache directory must be writable (CHMOD 777), however the admincp displays a warning if the cache dir is not writable :)
Hi ... :)

Ok, the output is an SQL error. For security and privacy, I have replaced our site name with xxxx's.



The SQL error doesn't appear when I run the "Preview" or try to view the same attachment with the mod's code, just run I run your special testattachments.php program.

By the way, I have re-installed the mod twice just in case something went wrong with the original install.

Does this help?

Regards,
Doug

Yes, apparently the settings table for the plugin doesn't exist. This is odd, maybe there was a problem with the install process? did you see any warnings displayed while installing the addon?
I'll make it more verbose in regards of errors in the next version.

Please check manually if the table exists in your database. I assume that your mysql user hasn't enough permissions to create a table. So you have to create the table manually.

To do so, go to your mysql administrative system (like phpmyadmin) and run these sqls, but only run them if and ONLY if the table doesn't exist yet:
CREATE TABLE `{TABLE_PREFIX}plwmsettings` (
`varname` VARCHAR( 100 ) NOT NULL ,
`value` MEDIUMTEXT NULL ,
`defaultvalue` MEDIUMTEXT NULL
) ENGINE = MYISAM
ALTER TABLE `{TABLE_PREFIX}plwmsettings` ADD PRIMARY KEY ( `varname` )
INSERT INTO `{TABLE_PREFIX}plwmsettings` (
`varname` ,
`value` ,
`defaultvalue`
)
VALUES (
'plwm_cache_basedir', NULL , NULL
), (
'plwm_cache_lifetime', '604800', '604800'
), (
'plwm_watermark_method', 'text', 'text'
), (
'plwm_watermark_path', 'path/to/watermark.png', 'path/to/watermark.png'
), (
'plwm_watermark_text', 'Don''t steal plz!', 'Don''t steal plz!'
), (
'plwm_watermark_font', '3', '3'
), (
'plwm_watermark_ttf', 'path/to/customfont.ttf', 'path/to/customfont.ttf'
), (
'plwm_watermark_size', '10', '10'
), (
'plwm_watermark_color', '#ABE7F4', '#ABE7F4'
), (
'plwm_watermark_shadecolor', '#000000', '#000000'
), (
'plwm_watermark_alpha', '45', '45'
), (
'plwm_watermark_attid', '0', '0'
), (
'plwm_watermark_posinfo', '3,10,10', '3,10,10'
), (
'plwm_lru_max_entries', '50', '50'
), (
'plwm_watermark_quality', '80', '80'
), (
'plwm_watermark_minpicsize', '200', '200'
);
(replace {TABLE_PREFIX} with your according vb table prefix)

BadgerDog
05-22-2011, 03:56 PM
Yes, apparently the settings table for the plugin doesn't exist. This is odd, maybe there was a problem with the install process? did you see any warnings displayed while installing the addon?
I'll make it more verbose in regards of errors in the next version.

Please check manually if the table exists in your database. I assume that your mysql user hasn't enough permissions to create a table. So you have to create the table manually.

Sorry, you're way past my skillset .. :( :D

I did uninstall and re-install, but still have the same problem.

I don't know why I wouldn't have permissions to add a table, as I've added dozens of mods that have tables to the sql databse and never had a problem. :confused:

Regards,
Doug

Disasterpiece
05-22-2011, 09:12 PM
Do you have access to a database administration tool by your hoster for example?
If not, I'd suggest to ask them for assistance.

It's important to find out why the script doesn't find the table. If it doesn't exist, it's easy to create it with these mentioned sql queries.

BadgerDog
05-22-2011, 10:58 PM
Do you have access to a database administration tool by your hoster for example?
If not, I'd suggest to ask them for assistance.

It's important to find out why the script doesn't find the table. If it doesn't exist, it's easy to create it with these mentioned sql queries.

I have phpmyadmin installed and I can see both our live and development databases in it, but fear of wiping out our site keeps me from using it. :D

Regards,
Doug

Edit: I viewed the devforum database in phpmyadmin and I see this list in the attached pic. I don't see any table starting with "plw", so can I assume it doesn't exist?

demo7up
05-23-2011, 02:49 PM
This does not work at all for me i have verified directories, i do see my watermark images in the settings but thats all .... nothing gets watermarked

my attachment images just display the spinning loading symbol?

Disasterpiece
05-23-2011, 06:32 PM
I have phpmyadmin installed and I can see both our live and development databases in it, but fear of wiping out our site keeps me from using it. :D

Regards,
Doug

Edit: I viewed the devforum database in phpmyadmin and I see this list in the attached pic. I don't see any table starting with "plw", so can I assume it doesn't exist?

Hm, seems like it really doesn't exist.
Might be an issue with the fact that you don't use any table prefix, but I'm not sure.

However, execute the 3 queries I posted above, removing the {TABLE_PREFIX} part completely and tell me if it helped. (Make backups before running those queries), you can do that in the phpmyadmin via tab "SQL" or in the vb admincp, given that your userid is defined in the according config.php entry allowing to run sql queries.

This does not work at all for me i have verified directories, i do see my watermark images in the settings but thats all .... nothing gets watermarked

my attachment images just display the spinning loading symbol?

Do you use any other mods which hook into any kind of attachment or album functions?

Please upload the testattachments.php file into your vbulletin root file, navigate to the file via browser, add a ?i1=13 to the url that it looks like:
http://myforumurl.com/forum/testattachments.php?i1=13
Where 13 is the id from any image attachment which is big enough for the watermark to get applied.
You can see the id of any attachment image by opening the file (rightclick -> Show image) and reading the id from the url.

If all runs smoothly, the script should answer with:
Watermark system finished
Script end.
If any errors occur, you should get them displayed.

This is the only way to display php warnings/errors, because the standard attachment system has them disabled completely.

BadgerDog
05-24-2011, 11:34 AM
H
However, execute the 3 queries I posted above, removing the {TABLE_PREFIX} part completely and tell me if it helped. (Make backups before running those queries), you can do that in the phpmyadmin via tab "SQL" or in the vb admincp, given that your userid is defined in the according config.php entry allowing to run sql queries.


You mean wherever the phrase {TABLE_PREFIX} appears in your sql commands, remove it?

Regards,
Doug

Disasterpiece
05-24-2011, 11:49 AM
yes.

Normally you'd replace it with your table prefix, like "vb4_" for example so the correct table name gets created, but since you don't use table prefixes for your vbulletin tables, just the table name would be the correct name convention.

.

BadgerDog
05-24-2011, 12:11 PM
yes.

Normally you'd replace it with your table prefix, like "vb4_" for example so the correct table name gets created, but since you don't use table prefixes for your vbulletin tables, just the table name would be the correct name convention.

.

Ok, crossed my fingers and executed the three sql command sequences above, removing the {TABLE_PREFIX} thing :D

I now have a table in the database and nothing seemed to blow up. (see pic)

However, when I run preview or look at attachments, no watermark shows. In preview, I still don't see demo pic. :confused:

Regards,
Doug

Disasterpiece
05-24-2011, 01:28 PM
Looks good to me.

I updated the test script yesterday so it should be more verbose now. Download it from her: https://vborg.vbsupport.ru/showpost.php?p=2199201&postcount=36
Put it into your root dir and navigate to the script, adding ?i1=*number* to the url where *number* is the id from an image where the watermark should appear.

BadgerDog
05-24-2011, 01:47 PM
Looks good to me.

I updated the test script yesterday so it should be more verbose now. Download it from her: https://vborg.vbsupport.ru/showpost.php?p=2199201&postcount=36
Put it into your root dir and navigate to the script, adding ?i1=*number* to the url where *number* is the id from an image where the watermark should appear.

Ok, done and ran ..... :)

http://www.xxxxxx.com/devforum/testattachments.php?i1=22804

Output ...

Watermark system finished
Script end.

When I run preview or look at attachments, no watermark shows. In preview, I still don't see demo pic.

Regards,
Doug

Disasterpiece
05-24-2011, 01:52 PM
In your cache directory, do files appear?
If you download one of those, rename the extension to .jpg (or the according image format) and view them in the windows image viewer, do you see watermarks?

If not, PM me your login credentials and I take a look myself. Very strange.

BadgerDog
05-24-2011, 02:06 PM
In your cache directory, do files appear?
If you download one of those, rename the extension to .jpg (or the according image format) and view them in the windows image viewer, do you see watermarks?

If not, PM me your login credentials and I take a look myself. Very strange.

Nothing in cache...

Downloaded attachment pic and nothing showing anywhere on it...

Regards,
Doug

Update: I just went back to the devforum and checked it again. I have no idea why, but all of a sudden watermarks are displaying on both attachments and in-line attachments. :eek: The "preview" pic still doesn't show, but it's at least working live now, so I guess we can start some real testing. :)

demo7up
05-25-2011, 01:16 PM
i dont use id's in my url's

this is the error

Invalid SQL:

SELECT a.contenttypeid
FROM attachment AS a
WHERE a.attachmentid = 2006-I-drive-a-eg-4-door;

MySQL Error : Unknown column 'I' in 'where clause'
Error Number : 1054
Request Date : Wednesday, May 25th 2011 @ 08:14:14 AM
Error Date : Wednesday, May 25th 2011 @ 08:14:14 AM
Script : http://nycjdm.com/testattachments.php?i1=2006-I-drive-a-eg-4-door
Referrer :
IP Address : 24.136.115.58
Username : XXX
Classname : XXX
MySQL Version : 5.0.92-community

Disasterpiece
05-25-2011, 01:21 PM
Which SEO Addons do you use?
Also: Which vB version do you have?

demo7up
05-25-2011, 01:36 PM
i have 4.1.3

Im using VB's Friendly URL's built in feature i have mine set to

Basic Friendly URL's

Disasterpiece
05-25-2011, 05:46 PM
Interesting, I'll figure it out!

BadgerDog
05-25-2011, 08:54 PM
Some questions and thoughts ... :)

It's obvious that using the cache approach, this mod would cause a duplication of attachments, which isn't a problem for people with large hard disk space available.

However, what I was wondering was, is there an impact on performance that would slow down the forums with the mod having to intercept every attachment being viewed by the user, then save it to the cache, then retrieve it again?

Thanks for any feedback ..

Regards,
Doug

Disasterpiece
05-25-2011, 09:12 PM
It's waaaay cheaper reading a cache file from disk than regenerating the image for every viewer.
Re-generating means:
- load attachment from file or database
- check if large enough, etc.
- load watermark file
- apply watermark file
- output

Loading from cache means:
- load cached image file
- output

Hard-disk drives use an internal page cache as well, so it's the best way to gain optimal performance.

For those with limited disk space, I implemented the cache table, which only keeps a fraction of the attachments which have been viewed recently in the cache. This should allow optimal control between performance and disk usage. Of course the worst case then would be, if an user views all attachment images one after another. But then again, it's a server and they're optimized to handle this kind of stuff.

If you have more questions or suggestions about performance and cache behaviour, feel free to ask :)

BadgerDog
05-25-2011, 09:38 PM
If you have more questions or suggestions about performance and cache behaviour, feel free to ask :)

Thanks for the detailed answer .. appreciate it ....that was very helpful ... :up:

I think I might try to move this to the live forums, but I'm a little worried that table didn't get created and added to the database during the install. Should I wait until you've finished your beta testing?

Regards,
Doug

Disasterpiece
05-25-2011, 09:44 PM
Thanks for the detailed answer .. appreciate it ....that was very helpful ... :up:

I think I might try to move this to the live forums, but I'm a little worried that table didn't get created and added to the database during the install. Should I wait until you've finished your beta testing?

Regards,
Doug
Right now there isn't anything I'd be able to do to fix this behaviour. It's odd, but not really a reproduceable error/bug on my end. As long as it works afterwards, it may be just a little bug in the installscript which isn't critical, because it just has to run once...

I suggest to install the mod on your live system too, if the same issue occurs, just execute the same SQL queries again and it should work. There's nothing which could break by that. :cool:

AnabolicResourc
05-27-2011, 04:30 PM
Can't get this to work, no attachment is showing and the watermark is not showing neither only a red x instead.
In admincp i can see the watermark on the preview picture, although it still says: watermark file not found with a yellow triangle.

Can I pm you with some details to get some help ??

Thanks in advance...

Disasterpiece
05-27-2011, 06:20 PM
Can I pm you with some details to get some help ??
Sure

BadgerDog
05-28-2011, 12:54 PM
I have a slightly special requirement for our site, potentially using this mod ... :)

Would you be interested in some contract work to modify this slightly to meet our needs?

Thanks for your work... appreciated as always ... :up:

Regards,
Doug

Edit: BTW, forgot to mention that I installed this on our "live" 4.1.3 forums and it's working fine. The install there added the plwm table that was missing when we installed it on our devforums. For whatever reason, the table inserted correctly on the "live" forums install, so I didn't have to do the manual SQL thing. So far, is working well .... :up:

Disasterpiece
05-28-2011, 01:56 PM
Nice to hear!

You can send me a pm with your requirements, we'll work something out :)

BadgerDog
05-28-2011, 06:28 PM
Nice to hear!

You can send me a pm with your requirements, we'll work something out :)

Sounds good .... :up:

Update: Been testing on our live system and there are no crashes or show stopper errors, but we are experiencing a pic anomaly that I can't explain.

Look at the two pics attached.

I happened to check a pic and noticed that it had a solid grey bar along the bottom (see left pic) which looked odd to me, since I didn't remember it that way before I installed the watermark mod. I then checked some other pics and some were fine, while others also had the grey bar along the bottom.

So, I went into AdminCP and looked at the options for the mod to see if there was anything obvious there. It looked fine and the watermark was showing, as well as your sample dog pic with it on it. So, I simply hit the submit button, then some activity at the top of the screen occurred, showing some files being handled by the mod.

Now, the surprising thing. I went back and looked at the same pics that had the grey bar and now they had the watermark appearing just fine, as shown in the right pic with the correct watermark in bottom right corner of pic. :eek: :confused:

Since then, I've been monitoring the attachment pics and every once and a while, pics start appearing when selected with the grey bar again. If I repeat the AdminCP process of doing nothing more than hitting the submit button, it fixes the problem with all the pics again.

I can't explain what's happening, or how to fix the problem permanently. Any ideas? :)

By the way, I've also attached the watermark PNG file.

Regards,
Doug

BadgerDog
05-28-2011, 06:47 PM
Another follow up ....

This grey bar thing seems to be happening a lot more ....

I selected a pic from a post that had the bar, which was supposed to be a watermark. I then physically went into the server via FTP and looked at the pic as it's stored in the mod's cache file and it looks fine (see pic below). However, if I look at it through vBulletin's attachment view function it has the grey bar.

So, I went into the mod's Cache Stats function in AdminCP and checked the "yes" box, then ran it. A bunch of processing of files occurred saying "Ok", then it returned to the AdminCP. Upon viewing the pic now through the vBulletin attachment capability, the pic now had the watermark and the grey bar was gone. :confused:

Regards,
Doug

Disasterpiece
05-28-2011, 07:15 PM
The grey bar can be explained like this:
If the watermark gets applied and the image saved in the cache, the filesizes differs, because the watermark consumes more file size.
Now, vbulletin queries the file size from the original files and sends them in the HTTP Header so the browser knows how many bytes will be transferred. The Mod modifies this number with the cached file, so the whole image from the cache gets transferred completely. In the earlier development states i forgot this step, so grey bars appeared.
However, it's very odd that you experience grey bars, this shouldn't happen anymore.

Possible explanations are scripts and/or other mods who compress image files or use their own caching methods. Do you use any of those?

Always remember to clear your browser cache while testing the watermark behaviour. STRG+F5 should work as a clean reload.

BadgerDog
05-28-2011, 07:29 PM
Possible explanations are scripts and/or other mods who compress image files or use their own caching methods. Do you use any of those?

Not to my knowledge .... :erm:

Always remember to clear your browser cache while testing the watermark behaviour. STRG+F5 should work as a clean reload.

Roger that ... :up:

Well, if you have any debug method of testing this for you, I'd be happy to give it a try ...

Until then, I'd better turn off the mod, as members are sending emails about why their pics they uploaded have a grey bar on the bottom. :D

Thanks for your help ... :)

Regards,
Doug

BadgerDog
05-29-2011, 09:27 AM
Possible explanations are scripts and/or other mods who compress image files or use their own caching methods. Do you use any of those?

Follow up ... :)

I was thinking about your question. We do use "Memcache" as a basic Linux add-on, which in-turn uses vbOptimize (http://www.dragonbyte-tech.com/vbecommerce.php?do=purchase&act=product&id=1)

It's a great add-on that dramatically speeds up our forums, but I don't know why it would affect your mod, if at all.

Regards,
Doug

BadgerDog
06-01-2011, 10:14 PM
Another follow up ... :)

I think I found a pattern with the grey bars, but it doesn't make any sense. It seems to only happen, at least on our site, with pics that are very large when expanded to full size, from their small thumbnail. I don't mean size as in bytes, but rather size as in HxW dimensions.

Regards,
Doug

Disasterpiece
06-02-2011, 12:32 AM
Another follow up ... :)

I think I found a pattern with the grey bars, but it doesn't make any sense. It seems to only happen, at least on our site, with pics that are very large when expanded to full size, from their small thumbnail. I don't mean size as in bytes, but rather size as in HxW dimensions.

Regards,
Doug

I couldn't yet find the reason to this behaviour, it seems to be webserver-specific... still working on it.

BadgerDog
06-02-2011, 10:06 AM
... still working on it.

Roger that .. :)

Thanks .. :up:

Regards,
Doug

BadgerDog
06-03-2011, 03:09 PM
Update ... :)

Did so more research and there's definitely a pattern of only grey bars appearing for pics over a certain HxW ...

For example, it seemed to be working fine on recent uploads, then a member just added 3 pics that are 1279px ? 959px, they display fine, however, all three have a grey bar across the bottom.

I noticed that another member immediately afterwards uploaded some pic attachments that were less than 1024x768 and the watermarks show just fine on them ...

Hope that helps debug things ... :up:

Regards,
Doug

Edit: I've added another example that shows how large pics seem to a factor in triggering the grey bar. The pic attached is one a member just uploaded as an attachment and it's 2448px ? 2958px (scaled by vBulletin for internal storage to 532px ? 643px).

demo7up
06-09-2011, 02:07 PM
i dont use id's in my url's

this is the error

Invalid SQL:

SELECT a.contenttypeid
FROM attachment AS a
WHERE a.attachmentid = 2006-I-drive-a-eg-4-door;

MySQL Error : Unknown column 'I' in 'where clause'
Error Number : 1054
Request Date : Wednesday, May 25th 2011 @ 08:14:14 AM
Error Date : Wednesday, May 25th 2011 @ 08:14:14 AM
Script : http://nycjdm.com/testattachments.php?i1=2006-I-drive-a-eg-4-door
Referrer :
IP Address : 24.136.115.58
Username : XXX
Classname : XXX
MySQL Version : 5.0.92-community

Did you ever get to work on this issue.. I would really like to use this on my website....?

Disasterpiece
06-09-2011, 03:45 PM
Did you ever get to work on this issue.. I would really like to use this on my website....?

Working on it right now.

The thing is... The url "http://nycjdm.com/testattachments.php?i1=2006-I-drive-a-eg-4-door" seems to be completely wrong.
Did you enter it by yourself? Because that's not the way it was intended, maybe you misunderstood the parameter?
Or did the script redirect you to this url?

Lets say you browse your album, you should find the id even with seo urls enabled. Check the screenshot where to find it:
129906
You'd then enter the id into the test url like this:

http://nycjdm.com/testattachments.php?i1=13

This way, the test script will use the image with id 13 for the testing.

demo7up
06-09-2011, 04:00 PM
Working on it right now.

The thing is... The url "http://nycjdm.com/testattachments.php?i1=2006-I-drive-a-eg-4-door" seems to be completely wrong.
Did you enter it by yourself? Because that's not the way it was intended, maybe you misunderstood the parameter?
Or did the script redirect you to this url?

Lets say you browse your album, you should find the id even with seo urls enabled. Check the screenshot where to find it:
129906
You'd then enter the id into the test url like this:

http://nycjdm.com/testattachments.php?i1=13

This way, the test script will use the image with id 13 for the testing.

Okay i understand now.. i redid it and i got this error

Failed @ 114

Disasterpiece
06-09-2011, 04:17 PM
Just updated with Version 1.1 which should fix a few problems


Okay i understand now.. i redid it and i got this error

Failed @ 114
Open the testattachments.php with a texteditor, search for the line
if (!$res) die("Failed @ 114");
replace it with:
if ($res === FALSE) die("Failed @ 114");

and run again. Then report back if it still fails at the same error.

demo7up
06-09-2011, 04:48 PM
working perfectly thanks so much!!!

Disasterpiece
06-09-2011, 04:50 PM
You mean the new version works now? or the test script?

wut? :D

demo7up
06-09-2011, 04:54 PM
the test script, and the product..

stwan
06-09-2011, 05:33 PM
This module only works with attached images?

Disasterpiece
06-09-2011, 07:35 PM
This module only works with attached images?

With all image files, which exist physically on the server and are handed over by the vB attachment system.

S3Ponline
06-12-2011, 05:52 AM
With all image files, which exist physically on the server and are handed over by the vB attachment system.

How?s the progress on this going?

Which version of vbulletin are you testing this on?

Nice mod. I look forward to the next update :)

Disasterpiece
06-12-2011, 10:50 PM
How’s the progress on this going?
The plugin hooks into the vbulletin attachment system, before the attachment image gets displayed.
The mod takes the image data either from database or file system according to your vB config, applies the watermark image, caches the image file for next request and prints the image to the screen.

Which version of vbulletin are you testing this on?
Developed from version 4.0.8 to 4.1.3, basically it *should* work for 4.x.x

nocte
06-15-2011, 03:13 PM
how about performance? Anyone using this Hack on a big board?

caches the image file for next request

where are the images cached?

When will this mod be stable?

Disasterpiece
06-15-2011, 03:55 PM
how about performance? Anyone using this Hack on a big board?
This remains to be tested.
The image processing should be quite performant, if you choose a bigger cache size, the images only need to be processed once and can then be viewed 100+ times without the need to re-process them.

where are the images cached?
In the file system, you can specify the cache directory yourself.
Idealy, it should remain outside the httpdocs directory.

When will this mod be stable?
It is marked as "Beta" because people were reporting behaviour I could not reproduce.
If it works for your configuration, you can consider it "stable".
I suggest to test it in a safe environment with the same webserver configuration and see if all works as intended.

edgeyveggie
06-15-2011, 07:32 PM
Whoa I just tried this and now none of my images are visible on my site that were in threads? What happened? How do I fix this?

WebConnection
06-16-2011, 12:39 PM
Is there a way that we can set in the option to have the watermark in random position between the four corners of the image(Top Left, Top Right, Bottom Left, and Bottom Right)?

Disasterpiece
06-16-2011, 02:57 PM
Whoa I just tried this and now none of my images are visible on my site that were in threads? What happened? How do I fix this?
This is a usual issue if any kind of errors appear.

Do you see the watermark in the adminCP settings page? Or is there no image at all?
Do you see any warning symbols in the product's settings?

You can PM me your forum data so I can take a look myself. I guess it's just a configuration issue.

Is there a way that we can set in the option to have the watermark in random position between the four corners of the image(Top Left, Top Right, Bottom Left, and Bottom Right)?
Not right now. Since images are cached, it wouldn't be a very useful functionality IMHO.

BadgerDog
06-20-2011, 12:09 PM
Unfortunately, due to the continuing problems and complaints from members with the grey bars instead of the watermark appearing on larger pics, we did have to uninstall this mod.

We do thank the author disasterpiece and appreciate his efforts to support the vBulletin community with his many add-on mods. :)

Regards,
Doug

Rahstyles
07-02-2011, 11:16 AM
The images are not showing up

S3Ponline
07-19-2011, 06:15 AM
Any updates on this? Does it work in 4.1.4 . I’m really hoping I can get a watermark feature :D

archet1337
07-19-2011, 07:15 AM
Any updates on this? Does it work in 4.1.4 . I?m really hoping I can get a watermark feature :D

Just installed this on my 4.1.4 board and it is working great :)

Disasterpiece
07-19-2011, 05:07 PM
It seems like it depends on your webserver software, version and installed modules. It's hard to pinpoint problems, I can't reproduce.

I'll try to build it more error-tolerant in the next version, which probably won't come out too soon :(

S3Ponline
07-21-2011, 04:59 AM
It seems like it depends on your webserver software, version and installed modules. It's hard to pinpoint problems, I can't reproduce.

I'll try to build it more error-tolerant in the next version, which probably won't come out too soon :(

Oh, why not?

You have any examples?

BadgerDog
07-21-2011, 09:59 AM
It seems like it depends on your webserver software, version and installed modules. It's hard to pinpoint problems, I can't reproduce.

I'll try to build it more error-tolerant in the next version, which probably won't come out too soon :(

Hi partner .. :)

Have you had any further chance to look at the grey bar problem?

Appreciate your efforts and work ....

Regards,
Doug

dacho
08-10-2011, 07:38 AM
Dons't work for me with vb415

HoSStiA
08-11-2011, 02:29 PM
Dons't work for me with vb415
The same problem with CMS

demo7up
08-24-2011, 01:53 PM
Is there any way even manually to exclude a forum id?

Lethe
09-04-2011, 10:07 AM
thank you

tested ,vb 4.1.5

only white page


https://vborg.vbsupport.ru/external/2011/09/79.jpg

KpDaCancunLegen
09-06-2011, 06:54 PM
Hi, I was wondering if I install this add on, will photos still be watermarked if people right click on the pictures and and save it?

Respectfully,
KP

mindhunter77
10-05-2011, 06:59 PM
wish this could be released for 3.x as well!

oddmud
10-06-2011, 05:45 PM
Running 4.1.6.

I'm getting "Cache Path Doesn't Exist!". I'm not sure what you're looking for here. I've tried /cache/ I've tried /websiteurl/cache/. I've tried everything I can think of, but nothing seems to work. My cache path is set to 777.

Images path says the same thing, yet it's showing my image in the Watermark Preview thingy.

This has stopped all images from working now.

What's up with my settings, or your mod?

I'm not getting a preview at the bottom either.

oddmud
10-06-2011, 05:56 PM
Warning: getimagesize(/images/watermark.png) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/pl_watermark_imagemanipulation.php on line 88
Warning: file_get_contents(/images/watermark.png) [function.file-get-contents]: failed to open stream: No such file or directory in [path]/includes/pl_watermark_imagemanipulation.php on line 91
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/pl_watermark_imagemanipulation.php:333) in [path]/admincp/pl_watermark_admin.php on line 368
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/pl_watermark_imagemanipulation.php:333) in [path]/admincp/pl_watermark_admin.php on line 369
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/pl_watermark_imagemanipulation.php:333) in [path]/admincp/pl_watermark_admin.php on line 370
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/pl_watermark_imagemanipulation.php:333) in [path]/admincp/pl_watermark_admin.php on line 371
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/pl_watermark_imagemanipulation.php:333) in [path]/admincp/pl_watermark_admin.php on line 372

This is when I look at the preview image URL.

Disasterpiece
10-07-2011, 11:13 AM
Running 4.1.6.

I'm getting "Cache Path Doesn't Exist!". I'm not sure what you're looking for here. I've tried /cache/ I've tried /websiteurl/cache/. I've tried everything I can think of, but nothing seems to work. My cache path is set to 777.

Images path says the same thing, yet it's showing my image in the Watermark Preview thingy.

This has stopped all images from working now.

What's up with my settings, or your mod?

I'm not getting a preview at the bottom either.
But you do know how paths work in unix systems?

/cache/ means the absolute path. It would look for a directory named "cache" in the root dir /
I think you meant relative paths from the current web directory the script is located in. then you need to remove the first slash: "cache/"

or to be sure, use the full absolute path. Let's say your web directory is located in "/var/www/vhosts/somedomain/htdocs/"
then you want to use the following path:
"/var/www/vhosts/somedomain/htdocs/cache/"

This is when I look at the preview image URL.
This indicates, that you didin't upload the sample image file which should go to your forum's image directory with the filename "watermark.png"

Check the archive you downloaded here and upload all files, including those in the image dir branch.

Indy CTS-V
10-17-2011, 02:48 AM
Meh...appears more full of fail than anything. It either works or it doesnt....and it doesnt. Images dont show...no water marks....cache exists....but your program continues to say it doesnt. Being I have wasted about two hours on this at this point....I'm out.

BadgerDog
10-17-2011, 10:39 AM
Hi partner .. :)

Have you had any further chance to look at the grey bar problem?

Appreciate your efforts and work ....

Regards,
Doug

Any updates on this problem?

Currently have mod turned OFF, so I was wondering if there's been any progress to determining why this seems to be a hit and miss problem...

Thanks .. :)

Regards,
Doug

Disasterpiece
10-17-2011, 10:42 AM
I couldn't reproduce this problem on 3 different web server configurations yet.

And tbh this mod isn't the focus of my attention right now, so it'll take some more time or perhaps another skilled fella who'd like to take a look at this.

laktrui
10-31-2011, 04:00 PM
Thanks for this add in ...
But i have a request, this add in do not effect to thumbnail image, please upgrade to this add in.

laktrui
10-31-2011, 04:13 PM
Thanks for this add in ...
But i have a request, this add in do not effect to thumbnail image, please upgrade to this add in.

Solved this request: remove !$vbulletin->GPC['thumb']
New request: have option at Plugin Setting about effect to thumb.
Thanks very much :)

WDS
11-10-2011, 05:28 PM
Running 4.1.6.

I'm getting "Cache Path Doesn't Exist!". I'm not sure what you're looking for here. I've tried /cache/ I've tried /websiteurl/cache/. I've tried everything I can think of, but nothing seems to work. My cache path is set to 777.

Images path says the same thing, yet it's showing my image in the Watermark Preview thingy.

This has stopped all images from working now.

What's up with my settings, or your mod?

I'm not getting a preview at the bottom either.

I have this same problem, I read the answer No. 96 hayo but not the solution.
other than that to write images remain in miniature and I can not see them in large or Siqueira copying the link of the image in the IMG tag .. I'm so lost, not to do.

I hope you can help me, thanks.

Disasterpiece
11-10-2011, 08:25 PM
I have this same problem, I read the answer No. 96 hayo but not the solution.
other than that to write images remain in miniature and I can not see them in large or Siqueira copying the link of the image in the IMG tag .. I'm so lost, not to do.

I hope you can help me, thanks.

It is important that your cache directory works.

If you're running on a linux machine, then the most common value would be "/tmp" (without quites)
Try that and report back if this counts as a valid cache directory.
If you have success, the images should appear as well.

WDS
11-11-2011, 01:49 PM
It is important that your cache directory works.

If you're running on a linux machine, then the most common value would be "/tmp" (without quites)
Try that and report back if this counts as a valid cache directory.
If you have success, the images should appear as well.


Oh it works perfectly Thank you very much mate, I was really going crazy looking for the solution and place the link was just good in the cache

That I make when loading an image, it comes in real size. No thumbnails?

Thanks...:D

oddmud
11-12-2011, 09:20 PM
Finally got it to work, thanks for the better explanation.

Now my forum is running really slow, is it back dating all the old photos and adding the watermark? Or does it do it on each call up of the image?

Disasterpiece
11-12-2011, 09:56 PM
It does only add watermark when the image is not in the cache, a so called "lazy" method.
Check the overall cache size, I don't think that the watermark tool is causing the problem tho

WDS
11-13-2011, 03:20 PM
Disasterpiece

I've been looking but not how:

I want to upload an image that aparesca with and without miniature size.
Ie I raise the image and automatically display actual size.
and disable the thumbnail at the end of the post, is very ugly.

Thanks.

inigo
12-01-2011, 01:03 PM
Is this compatible with the vb option:

"Save Attachments as Files" YES?

Or attachments have to be stored in the DB for this mod to work?

I ask, because I have been looking for server optimization (Vb optimise 2.0.1 mod (https://vborg.vbsupport.ru/showthread.php?t=237325&highlight=optimise+lite)), and this is one of the things recommended to do, to save attachments as files instead the default DB storage of Vb.

Please any help would be apreciated,

Thanks!

Disasterpiece
12-01-2011, 02:10 PM
the mod works with both files being stored on the filesystem and the database.

Keep in mind tho, that the cached watermark files are stored in the filesystem, regardless of the vbulletin options.

This means: Your original files without the watermarks are stored as you define it in the vB settings db/disk but the watermark mod stores the cached files only in the filesystem.

inigo
12-01-2011, 02:44 PM
Thanks for your fast response.

So, in this case, using your mod, is the same the vb storage option:

DB or filesystem

because the images would be cached with watermark in files and served directly, isn't it?

Or in spite of this watermarked files cached, would be better to storage the original images in files instead the DB?

Thanks very much!!!!!

Disasterpiece
12-01-2011, 03:42 PM
Actually it doesn't really matter if you store the files in db or filesystem. For the mod it's much faster to use the filesystem, so it can perform a fast check if the file is already cached than having to query the database for each case.

I recommend to store the attachment in the filesystem, otherwise you would carry the whole attachments in each of your database backup where the cached watermark files are on the filesystem nontheless.

inigo
12-01-2011, 04:48 PM
Thanks, I will transfer them from Db to filesystem.

Great mod!!!

I recommend it, and great support!!!!!!!

buddyheiko
12-14-2011, 09:30 PM
It doesn´t work on my 4.1.8. The preview is ok, but not when I applied it. Then you can´t see the pictures , just an X instead.

buddyheiko
12-14-2011, 09:50 PM
Now it works. I forgot the TMP and 777.

Disasterpiece
12-15-2011, 01:20 PM
Now it works. I forgot the TMP and 777.

Yep, that's necessary to make the watermark processing work :)

fromtheflames
12-29-2011, 03:22 PM
Hi and thank you for this mod!

Is it normal that the watermark is applied only to the full image and not to the thumbnail?
Also I had to disable the lightbox popup, 'cause it makes this problem: https://vborg.vbsupport.ru/showpost.php?p=2199106&postcount=35

fromtheflames
12-29-2011, 03:35 PM
This (https://vborg.vbsupport.ru/showpost.php?p=2263192&postcount=101) helps sorting out how to process the thumbnail, but a coded by the author solution is appreciate! :D

Disasterpiece
12-29-2011, 06:01 PM
Yeah, well it didn't make much sense to me to include thumbnails as well, because.. they're just low quality previews. Who wants to steal them? :P
Also it takes up additional cache size for no reason in my opinion, but I'll include an option there as well.

fromtheflames
12-29-2011, 06:22 PM
my thumbs are 500px wide (other admin wants so), so I think others could steal it.

thank you!

Reed_HCT
01-04-2012, 07:43 AM
Thank you for this mod.
It works great. :up:

vinkenier
01-14-2012, 07:12 PM
Update ... :)

Did so more research and there's definitely a pattern of only grey bars appearing for pics over a certain HxW ...

For example, it seemed to be working fine on recent uploads, then a member just added 3 pics that are 1279px ? 959px, they display fine, however, all three have a grey bar across the bottom.

I noticed that another member immediately afterwards uploaded some pic attachments that were less than 1024x768 and the watermarks show just fine on them ...

Hope that helps debug things ... :up:

Regards,
Doug

Edit: I've added another example that shows how large pics seem to a factor in triggering the grey bar. The pic attached is one a member just uploaded as an attachment and it's 2448px ? 2958px (scaled by vBulletin for internal storage to 532px ? 643px).

I'm having the same problem. Is there any solution yet?
Happens when you you upload bigger pics and when the watermark is not set to the bottom. When I set it to the bottom corner, it's working fine. But I want to get this working with the watermark in the center.
Using vb 4.1.9

angeljs
01-15-2012, 10:55 AM
Working great on 4.1.10 so far :)

Kraxell
01-15-2012, 11:18 AM
work with 4.1.9 too.

4nawadir.com
01-17-2012, 12:34 PM
Good Job ! 5 Starts
Can i translate it to ARABIC?

Disasterpiece
01-18-2012, 11:27 AM
Sure, why not

fromtheflames
01-18-2012, 12:31 PM
I'm having the same problem. Is there any solution yet?
Happens when you you upload bigger pics and when the watermark is not set to the bottom. When I set it to the bottom corner, it's working fine. But I want to get this working with the watermark in the center.
Using vb 4.1.9

Same here

Do something please!

4nawadir.com
01-18-2012, 04:37 PM
Translated !

http://www.traidnt.net/vb/traidnt2022257/

in attachments !

Reed_HCT
03-29-2012, 07:04 AM
The scheduled task for cache pruning does not work for me.

Cache liftime is set to 86400 (1 day) and lru table size is set to 100.
The task is scheduled at 9 am.
I'm running vbulletin 4.1.11

When I look into the cache dir I find all the files created since the last manual cache prune, while I suppose only to see files created from 9 am of yesterday, and no more than 100 files.

Mopar1973Man
03-30-2012, 10:11 PM
Really good mod! :up:

I got it installed on 4.1.11 and no problems so far... I really do like the different options, preview panel, etc. :D

BryanLong
04-01-2012, 11:15 PM
Dear Disasterpiece,

installed your Add-On on my forums (4.1.11) and everything seemed to work as we have tested the Board; but now in Live-Stages just two questions

1) MySQL-Errors
Invalid SQL:

REPLACE INTO datastore
(title, data, unserialize)
VALUES
('plwm_cache', 'a:1:{i:0;s:3:\"970\";}', 0);

MySQL-Fehler : MySQL server has gone away
Fehler-Nr. : 2006
Fehler-Zeit : Monday, 02.04.2012 @ 01:48:56
Datum : Monday, 02.04.2012 @ 01:51:40
Skript : http://URL/attachment.php?attachmentid=970&stc=1
Referrer : http://URL/newthread.php?do=newthread&f=15
IP-Adresse : 2.213.131.65
Benutzername : jf1
Klassenname : vB_Database


Note: Edited out the Board-URL as our Forums are "Not Safe for Work" ;)

Is there anything I can do preventing this Error? The Pictures seems to be uploaded correctly.

2) My Users are moaning about the Add-On as it will "destroy small pictures".
Means if you have big HQ-Pictures of about 2000 px (or up) you will need a much bigger watermark to make it "visibe" even on big pictures, but then smaller pictures (reaching their threshold) don`look goog anymore.

So will there be any possibility to somehow add scaling to the Add-On; so that the watermark-sizes is set depending on this size of the uploaded picture.

Can imagine to pay for such feature; maybe you can drop me a line.

Greetings,
Bryan

Disasterpiece
04-02-2012, 02:50 PM
1) MySQL-Errors
Invalid SQL:

REPLACE INTO datastore
(title, data, unserialize)
VALUES
('plwm_cache', 'a:1:{i:0;s:3:\"970\";}', 0);

MySQL-Fehler : MySQL server has gone away
Fehler-Nr. : 2006
Fehler-Zeit : Monday, 02.04.2012 @ 01:48:56
Datum : Monday, 02.04.2012 @ 01:51:40
Skript : http://URL/attachment.php?attachmentid=970&stc=1
Referrer : http://URL/newthread.php?do=newthread&f=15
IP-Adresse : 2.213.131.65
Benutzername : jf1
Klassenname : vB_Database


"MySQL server has gone away" usually refers to: MySQL Server crashed/exeeded its limits. This is a hoster-specific problem and not related to vb/the mod.

2) My Users are moaning about the Add-On as it will "destroy small pictures".
Means if you have big HQ-Pictures of about 2000 px (or up) you will need a much bigger watermark to make it "visibe" even on big pictures, but then smaller pictures (reaching their threshold) don`look goog anymore.

So will there be any possibility to somehow add scaling to the Add-On; so that the watermark-sizes is set depending on this size of the uploaded picture.

Watermark scaling doesn't make much sense imho, because on huge pictures, you have a huge annoying watermark which looks pixelated and low-quality. On small pictures you might run in trouble that it's too small to read it properly.

Because of the small images issue, I added the option to exclude images below a size of x pixels which should be enough to prevent the case that pictures get broken.

Sommersprosse
04-11-2012, 01:05 PM
Watermark scaling doesn't make much sense imho, because on huge pictures, you have a huge annoying watermark which looks pixelated and low-quality. On small pictures you might run in trouble that it's too small to read it properly.

Because of the small images issue, I added the option to exclude images below a size of x pixels which should be enough to prevent the case that pictures get broken.

I have two ideas for this problem:


watermark 1 for graphics that are smaller than X pixels (or deactivated)
watermark 2 for graphics that are between x and x pixels pixels (maybe 1000px to 2000px)
watermark 3 for graphics from size x pixels (over 2000px)


Moreover it would be awesome to be able disable the watermark for select individuals forums.

Please let me know, what you think about it.

Greetings

Sommersprosse

BryanLong
04-11-2012, 07:54 PM
I have two ideas for this problem:


watermark 1 for graphics that are smaller than X pixels (or deactivated)
watermark 2 for graphics that are between x and x pixels pixels (maybe 1000px to 2000px)
watermark 3 for graphics from size x pixels (over 2000px)


Moreover it would be awesome to be able disable the watermark for select individuals forums.

Please let me know, what you think about it.

Greetings
Sommersprosse

To add up to my colleague:

We will be willing to donate/pay something for getting any of the two possibilities mentioned:


Set specific Forums where the Watermark-Add-On will be disabled
Different Watermark-images depending on Picture-Sizes


Greetings,
Bryan

thanasis1
04-13-2012, 09:04 PM
on 4.1.13 does not load the attachments at all

oddmud
05-01-2012, 02:19 PM
Any updates on this for working with the latest version?

dog-tag
05-20-2012, 12:45 PM
I'm going to try this out... If the developer wants to use my forum to beta test more, I'm up for it!

I love supporting new projects :)

TerryMason
05-30-2012, 08:56 PM
For some reason this is only watermarking new attachments - old ones don't have it.

Other than that it seems to be working well.

Alibass
05-30-2012, 09:02 PM
Works well for me, I just updated to 4.2.0 a few days ago.

lovevn
06-01-2012, 04:12 PM
Hello
I have tried this mod on vbulletin 4.2.0. It works but I have problem with some images: just a half(top) of the image appear(other part is just a white screen). This happens with cms/ blog and album.

I have check the caches folder and the images were display fully in it.

Disasterpiece
06-03-2012, 03:06 PM
Hello
I have tried this mod on vbulletin 4.2.0. It works but I have problem with some images: just a half(top) of the image appear(other part is just a white screen). This happens with cms/ blog and album.

I have check the caches folder and the images were display fully in it.

I've heard of this issue before. This happens if the image size changes before sending the picture to the user.

Do you have any kind of compression running? maybe mod_gz or some other kind of webserver output compressing?

lovevn
06-04-2012, 02:24 PM
I've heard of this issue before. This happens if the image size changes before sending the picture to the user.

Do you have any kind of compression running? maybe mod_gz or some other kind of webserver output compressing?

Hello
Thanks for your reply.
Does any kink of the compression influence on your mode?
I am not sure if I have any of those compression. Could you please tell me how to check if any of the running on my server ?

Disasterpiece
06-05-2012, 01:34 AM
Hello
Thanks for your reply.
Does any kink of the compression influence on your mode?
I am not sure if I have any of those compression. Could you please tell me how to check if any of the running on my server ?

First, send me a link to your forums or an album/thread where you see this happening.

hhumas
06-12-2012, 05:45 PM
where can i get it for vb 4.1.5

inigo
06-14-2012, 07:00 AM
Hello,

I have a question. I have been using this mod since the first day it was released, and is wonderful.

But recently i have changed my CMS thumbnail preview image size, from 175 to 350, and i clear all the caches, and generate the thumbnails (attachment images) again, and the same with this mod cache.

And now the issue is that the images are correctly watermarked, but the new 350px thumbnail aren't. Before i could see the watermark in the thumbnails too.

Can you give me any idea to solve this? I would like to have myy new bigger thumbnails watermarked too.

Vb 4.1.7.

in the mod settings I have minimum image size 150 (before with the thumbnails 175 it worked perfectly).

Thanks!

Disasterpiece
06-14-2012, 11:32 AM
Hello,

I have a question. I have been using this mod since the first day it was released, and is wonderful.

But recently i have changed my CMS thumbnail preview image size, from 175 to 350, and i clear all the caches, and generate the thumbnails (attachment images) again, and the same with this mod cache.

And now the issue is that the images are correctly watermarked, but the new 350px thumbnail aren't. Before i could see the watermark in the thumbnails too.

Can you give me any idea to solve this? I would like to have myy new bigger thumbnails watermarked too.

Vb 4.1.7.

in the mod settings I have minimum image size 150 (before with the thumbnails 175 it worked perfectly).

Thanks!

hmm this is strange... When you change the size back to where it was before, does it work?

TerryMason
06-14-2012, 11:58 AM
Disasterpiece,
Are we supposed to get instructions on watermark removal after making a donation? I've manually removed mine, but I wouldn't mind some official instructions to make sure that I've done it right.

I'm also still having problems with older photos not being watermarked. Is this expected behavior (only photos uploaded recently get watermarked).

Disasterpiece
06-14-2012, 12:04 PM
Disasterpiece,
Are we supposed to get instructions on watermark removal after making a donation? I've manually removed mine, but I wouldn't mind some official instructions to make sure that I've done it right.

I'm also still having problems with older photos not being watermarked. Is this expected behavior (only photos uploaded recently get watermarked).

You can send me your server credentials per PM so I can take a look myself.
preferably ftp/administrative forum account.

lovevn
06-14-2012, 12:19 PM
First, send me a link to your forums or an album/thread where you see this happening.

Thanks for your reply.
I disabled it for many days and today I tried turning it on. It works now.
I will ask you again, if there is some problem happens.

Edit:
It happens again. Pm sent

ywwz
06-19-2012, 07:12 AM
text works, but image doesn't...

inigo
06-19-2012, 07:33 AM
hmm this is strange... When you change the size back to where it was before, does it work?

Sorry, I have thousands of attachments, is it necesary to recalculate all again? I will PM you with my forum info, so you can see the problem,

If it's necessary to recalculate i will do,m but I would like not to recalculating/generating all again (a lot of time and page slowing down,...)

Thanks!

Athena1984
06-25-2012, 04:24 AM
I'm using 4.2.0 and I am not seeing any watermark on the pictures even after refreshing and my images in the vault wiki aren't showing at all.

dwx
07-07-2012, 10:35 AM
I'm using 4.2.0, and I managed to get this addon working. Two things that I did that weren't completely obvious:

moved the images OUT of the DB into the file system.
added the GD module to the web server.It works now, BUT I've got performance issues. The first view of a photo usually shows the spinning icon indefinitely and you must click the icon to see the full sized image to get past the place it gets "stuck".



I'd much rather the extension made the watermarked images for the cache at the time they were uploaded and not when they are first viewed.


Otherwise, it works brilliantly.


If I was going to BEG for an additional feature, it would be an option for users to add their own individual watermarks as well.


Thanks for this Disaster!


-dwx

zooki
07-11-2012, 07:42 PM
Hi , the watermark image would not show because I had another name for the admin directory. Once I renamed Admincp, it worked. Anyone know a workaround, because I like having a different name for the admincp.

karlm
07-11-2012, 11:49 PM
Hi , the watermark image would not show because I had another name for the admin directory. Once I renamed Admincp, it worked. Anyone know a workaround, because I like having a different name for the admincp.

This should be a given for all vbulletin customers. I'm surprised the creator of the plugin hasn't used the variable instead of hard coding it :(

This means I'm probably not going to be able to use it either now...

imported_dfmafia
07-12-2012, 08:03 PM
no issues with 4.2.0 PL2. all attachments are watermarked.

had images in database and it worked. recently moved to file system and they work as well.
changed servers, imported 3 vB sites into one (impex) and all old attachments got the watermark as well.

I just tested this with PHP 5.3 and it was breaking the watermark and attachments came out in halves. i switched back to 5.2 and all is good. attachments upload fine, displayed inline fine with watermark

snotek
09-03-2012, 02:37 PM
I seem to get these randomly and I can only surmise that it happens everytime an image is uploaded to the site. (which would naturally be watermarked per your add-on)

Database error in vBulletin 4.2.0:

Invalid SQL:

REPLACE INTO datastore
(title, data, unserialize)
VALUES
('plwm_cache', 'a:1:{i:0;s:2:\"87\";}', 0);

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Sunday, September 2nd 2012 @ 09:56:08 AM
Error Date : Sunday, September 2nd 2012 @ 09:56:40 AM
Script : http://diydronesafety.com/attachment.php?attachmentid=87
Referrer : http://diydronesafety.com/content/117-undocumented-apm2-x-jtag-technique-jtag-apm1-x-using-only-redboard.html
IP Address : 92.157.176.188
Username : Unregistered
Classname : vB_Database_MySQLi
MySQL Version :


The issue that I have is that it's always generated by an "Unregistered" user, which on our site has no permissions to post, thus no permissions to upload images. The IP address listed is also always from some foreign country. (.fr in the example above)

My biggest fear here is that this script can be used to compromise the security of our server and that is no good.

Can you please explain why these errors occur and how they may be corrected?

Disasterpiece
09-03-2012, 03:08 PM
Hi

Not related with the mod, appears when the mysql server is stretched beyond its performance limits.

http://dev.mysql.com/doc/refman/5.1/en/gone-away.html

Alibass
09-08-2012, 01:33 PM
@Disasterpiece

I know you do not support this mod, but I have a question I hope you would answer.

I have installed DBTech Dragonbyte Gallery (link (https://vborg.vbsupport.ru/showthread.php?t=285074)) and your mod doesn't seem to work with it like it does using Picture and Gallery (link (https://vborg.vbsupport.ru/showthread.php?t=237931)). Is there something I'm over looking or the two mods incompatible with each other?

Thanks in advance.

-A

Mark_Zuckerberg
09-28-2012, 08:27 PM
i need a mod which puts water mark on any pic like if in a post someone post a pic like this

[image]www.photopucket.com/album/photo/google doodle.png[/img]
so on that pic water mark of outr forum should be added is this possible?

Disasterpiece
09-29-2012, 02:01 PM
@Disasterpiece

I know you do not support this mod, but I have a question I hope you would answer.

I have installed DBTech Dragonbyte Gallery (link (https://vborg.vbsupport.ru/showthread.php?t=285074)) and your mod doesn't seem to work with it like it does using Picture and Gallery (link (https://vborg.vbsupport.ru/showthread.php?t=237931)). Is there something I'm over looking or the two mods incompatible with each other?

Thanks in advance.

-A

I don't support compability between other mods at this time.

i need a mod which puts water mark on any pic like if in a post someone post a pic like this

[image]www.photopucket.com/album/photo/google doodle.png[/img]
so on that pic water mark of outr forum should be added is this possible?

No, the mod does only apply watermarks on images which are hosted on the same server.

Alibass
09-29-2012, 05:54 PM
I don't support compability between other mods at this time.

Thanks...

OutlawPSD
11-18-2012, 11:48 AM
Working fine here on 4.2.0

Forensic
12-10-2012, 06:54 PM
Is there a way to exclude image types that are watermarked?
We have a resident photochop/gif funny guy and its watermarking his GIFs. The images are flattened and it only shows a gray box.

I'd like to exclude the filetype GIF from the watermark process.

Other that that, 4.2 PL2 and its working great.

Disasterpiece
12-12-2012, 04:40 PM
Is there a way to exclude image types that are watermarked?
We have a resident photochop/gif funny guy and its watermarking his GIFs. The images are flattened and it only shows a gray box.

I'd like to exclude the filetype GIF from the watermark process.

Other that that, 4.2 PL2 and its working great.

How should the program know when a watermark already exists?

furnival
12-15-2012, 08:31 PM
Installed on VB 4.20 seems to be working straight out of the box for me. Many thanks!

I especially appreciate the min. image size to apply to feature.

ringnews24
12-15-2012, 10:49 PM
Does this work along side Picture and Album Gallery https://vborg.vbsupport.ru/showthread.php?t=237931

Forensic
12-17-2012, 06:04 PM
How should the program know when a watermark already exists?

Sorry, I guess I wasn't very clear. It has nothing to do with existing watermarks.

I just want to exclude any file with a .GIF extension from being watermarked.

k6rikko
12-19-2012, 05:38 PM
Hi @all :) its a nice mod and it was working well some moths but now i have a stupid problem.

All attachments (forums, albums and however) shows the pictures only at max 50% , someones lil less someones lil more.

That means i looks like pictures want load complette anymore. But if i disbale this plugin the pictures are all working and displayed 100% . havent change something or installed new plugins, it stoped working from 1 day to another <.<

Anyone can help me or have experiences with this problem ? have many thanks :)


My board is VB 4.2.0 PL3

Serverstuff:

Server Type Linux
Web Server Apache v2.2.16 (cgi-fcgi)
PHP 5.3.3-7+squeeze14
PHP Max Post Size 8.00 MB
PHP Maximum Upload Size 2.00 MB
PHP Memory Limit None
MySQL Version 5.1.66-0+squeeze1
MySQL Packet Size 16.00 MB

Disasterpiece
12-24-2012, 12:19 AM
I've heard of this problem but have not encountered it myself so far. I suspect some kind of output compression to be the problem since it modifies the file size and then the header file size field doesn't match anymore. Do you have any kind of gz compression active on your server or your forum?

patrick91
12-28-2012, 12:57 PM
Installed it and it it not working for me right now! I run your testattachments.php and it gives me this awnser:incorrect id!

Some thumbs are showing others don't and all the big images are not working also.

I had this mod installed before on an old installation and then it's working fine installed it on new installation and it's not working. Can it have to do i imported my things with impex?

Thanks,
Patrick

ywwz
12-29-2012, 01:18 PM
Great Mod. Working well on the latest version of Vbb4.2.0

patrick91
12-29-2012, 01:21 PM
Great Mod. Working well on the latest version of Vbb4.2.0

Yes and how!? Don't understand it at all i have run those test files from 1 to 100 and now the images are showing most of them even in the cms!:D But a lot of old ones don't! (looks like they don't even exist!) So will remove them by time.

So for now i'm very happy because now on all new images it will show and it works! Using vB4.2.0 PL3

THANKS

Is there a possibily to let this mod work with this: Import external images (https://vborg.vbsupport.ru/showthread.php?t=253309) ?

Disasterpiece
12-29-2012, 02:26 PM
Did your server configuratio change? There are two major image tools available for linux, which are GD(2) and Imagemagick. One of them both works, the other doesn't with the mod. You can find it in the vbulletin settings somewhere in the category General or Graphics or Server Settings. Which one do you use?

patrick91
12-29-2012, 02:54 PM
Did your server configuratio change? There are two major image tools available for linux, which are GD(2) and Imagemagick. One of them both works, the other doesn't with the mod. You can find it in the vbulletin settings somewhere in the category General or Graphics or Server Settings. Which one do you use?

Me? GD.

Matriosh
01-22-2013, 02:58 PM
Hi @all :) its a nice mod and it was working well some moths but now i have a stupid problem.

All attachments (forums, albums and however) shows the pictures only at max 50% , someones lil less someones lil more.

That means i looks like pictures want load complette anymore. But if i disbale this plugin the pictures are all working and displayed 100% . havent change something or installed new plugins, it stoped working from 1 day to another <.<

Anyone can help me or have experiences with this problem ? have many thanks :)


My board is VB 4.2.0 PL3

Serverstuff:

Server Type Linux
Web Server Apache v2.2.16 (cgi-fcgi)
PHP 5.3.3-7+squeeze14
PHP Max Post Size 8.00 MB
PHP Maximum Upload Size 2.00 MB
PHP Memory Limit None
MySQL Version 5.1.66-0+squeeze1
MySQL Packet Size 16.00 MB
Hello. I've got the same problem here. It persists because server is sending "Content-length" header with the real attachment size (not the watermarked one). I've tried to modify the product's plugin to fix this, but nothing happens, becase this header is sended before the hook called.
So, I just commented the "Content-length" header string in attachment.php:

header('Content-Length: ' . (($lastbyte + 1) - $startbyte));

And now it's works, but I think author should fix this problem in his product. Thx. = )

Alibass
01-22-2013, 03:25 PM
Hello. I've got the same problem here. It persists because server is sending "Content-length" header with the real attachment size (not the watermarked one). I've tried to modify the product's plugin to fix this, but nothing happens, becase this header is sended before the hook called.
So, I just commented the "Content-length" header string in attachment.php:

header('Content-Length: ' . (($lastbyte + 1) - $startbyte));And now it's works, but I think author should fix this problem in his product. Thx. = )
This mod is not supported and last update was about 19 months ago. I wouldn't look for an update, but your post is valuable to others with the same problem.

TerryMason
01-22-2013, 06:23 PM
Yes and how!? Don't understand it at all i have run those test files from 1 to 100 and now the images are showing most of them even in the cms!:D But a lot of old ones don't! (looks like they don't even exist!) So will remove them by time.

So for now i'm very happy because now on all new images it will show and it works! Using vB4.2.0 PL3


I have the same issue on my 4.1.11 forum. The mod has been working great for months, and the watermark shows on all newly uploaded photos, but doesn't show on photos uploaded before the mod was installed.

It doesn't matter the type of image (png / jpg, etc). I can take an image that isn't showing a watermark, save it locally then reattach it and the watermark will show.

I love this mod and will continue to use it - I just wish I could get all my photos watermarked.

dizzynation
01-22-2013, 07:38 PM
This would be a great mod for my forum. What are the chances of it working on 4.2?

Also is there an option to set certain opacity % for the watermark?

TerryMason - Have you tried running the General Update tool?

fxdigi-cash
01-22-2013, 10:52 PM
I haven't tried this mod myself yet, but willing to give it a shot....

on the other hand, I tried this mod on my vb.4.2 pl3 : https://vborg.vbsupport.ru/showthread.php?p=2398684

I know it is for vb3.x but surprisingly works on vb4.2 pl3

cheers:)

dog-tag
02-11-2013, 03:04 PM
Hello. I've got the same problem here. It persists because server is sending "Content-length" header with the real attachment size (not the watermarked one). I've tried to modify the product's plugin to fix this, but nothing happens, becase this header is sended before the hook called.
So, I just commented the "Content-length" header string in attachment.php:

header('Content-Length: ' . (($lastbyte + 1) - $startbyte));

And now it's works, but I think author should fix this problem in his product. Thx. = )

I tried this but it just broke all my attachments.

Can somebody share the correct way to comment out this line?

Edit - Alibass showed me this (MUCH APPRECIATED!!)

/ header('Content-Length: ' . (($lastbyte + 1) - $startbyte));

if that doesn't work then try this

<!-- header('Content-Length: ' . (($lastbyte + 1) - $startbyte)); -->

I also tested this watermarker also -
https://vborg.vbsupport.ru/showthread.php?p=2398684

And it works great, just an XML file with one minor edit, I'm using VB 4 PL3 if anyone finds this one doesn't work.

autoescala
03-08-2013, 11:50 AM
I tried this mod on my vb.4.2 pl3 and don't work, dont load the images :(
Uninstalled.....

grafixonline
03-12-2013, 03:27 PM
I also installed it on my vb 4.2 and the images would not load. Is there a fix?

Disasterpiece
03-13-2013, 05:47 AM
Try changing the image plugin. GD or imagemagick, one should work, the other won't.

MZF-Onkel
04-30-2013, 05:43 AM
Works mostly fine under vBulletin 4.2.0 Patch Level 3.

In some old images, the watermark will not be shown, but in all newly uploaded it works

We use GD, here are some more informations:

GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.10
WBMP Support enabled
XPM Support enabled
libXpm Version 30411
XBM Support enabled

It's in my opinion the BEST MOD for using Watermark in Images.

Best regards
Onkel

autoescala
04-30-2013, 07:00 AM
Dear Onkel,

When u install it, the watermark works for u in admin panel preview section ???

I my case I see the watermark, and I can test with the text option of watermark, but If I try use watermark image dont do nothing.

Best Regards

MZF-Onkel
05-14-2013, 07:00 AM
we tested it with the TEST Image, this works fine.

In the beginning we have some problems with the Images, they don't loaded.

I've installed an actually GD Version on the Server an now it works fine.

The problem that some old pictures have no watermark persists, unfortunately.
I don't know why.

Have you check your cache directory?
Have you installed some other Mods?

Best regards from Berlin

Disasterpiece
05-14-2013, 09:21 AM
I have no solution for the missing watermarks on older images, but can you use a different browser and checks if its still the same? Maybe your browser just cached old images.

Or try to move your attachments between database and filesystem once so they get reprocessed. Maybe it starts working then.

furnival
06-23-2013, 04:23 AM
I am yet another user of this mod who would appreciate the option to stop it from watermarking images attached to posts in certain forums. Please consider this feature for the next release!

Also please consider moving the admin cp options to the standard position along with all the other VB plugin options, under the normal settings link. It seems unnecessary for this to have its own seperate menu.

Disasterpiece
06-24-2013, 03:48 PM
I am yet another user of this mod who would appreciate the option to stop it from watermarking images attached to posts in certain forums. Please consider this feature for the next release!
This is already on the to-do list for the next update.

Also please consider moving the admin cp options to the standard position along with all the other VB plugin options, under the normal settings link. It seems unnecessary for this to have its own seperate menu.
The usual settings page is not as flexible as a custom admin menu, but I'll see what I can do to put it all in one place.

Stefan118
08-23-2013, 08:10 PM
The only issue i have with this SUPER mod is that it doesn't clear the cache after X seconds?
or is it minutes or days?

I hope it is seconds, just as about everything in vB.
If not, please do not laugh :)

I have set it to 86400 seconds, that should be 24 hours...
The cache is now 5 days old since i manualy cleared it.

Wajow-community
10-13-2013, 11:40 AM
Doesn't work for me

Wajow-community
11-09-2013, 04:31 PM
update for vb 4.2.x?

MZF-Onkel
12-06-2013, 03:55 PM
works fine with 4.2.2

Alibass
01-14-2014, 06:11 PM
**Installed**

Running 4.2.2 here with attachments in file storage system. I had to input cache directory manually in my database. Other than that 'it works as advertised. :):up:

Thanks

mkkak
03-21-2014, 08:57 PM
The only issue i have with this SUPER mod is that it doesn't clear the cache after X seconds?
or is it minutes or days?

I hope it is seconds, just as about everything in vB.
If not, please do not laugh :)

I have set it to 86400 seconds, that should be 24 hours...
The cache is now 5 days old since i manualy cleared it.

The Same Problem

mkkak
03-21-2014, 08:58 PM
The scheduled task for cache pruning does not work for me.

Cache liftime is set to 86400 (1 day) and lru table size is set to 100.
The task is scheduled at 9 am.
I'm running vbulletin 4.1.11

When I look into the cache dir I find all the files created since the last manual cache prune, while I suppose only to see files created from 9 am of yesterday, and no more than 100 files.

The Same Problem

Bernard4366
10-07-2015, 02:06 AM
Is the developer still monitoring this thread?

friendlymela
10-07-2015, 06:30 AM
very interesting

ArcadeSyndicate
10-07-2015, 09:20 AM
use this since years, works perfect for attachments in 4.2.2 :up:

Disasterpiece
10-09-2015, 12:13 PM
Is the developer still monitoring this thread?

monitoring yes, but support for my addons is limited.

RichieBoy67
01-25-2016, 11:51 PM
I am trying this with 4.2. Watermarking options are limited.

Does this take each image and then duplicate it with a watermark? We have thousands and thousands of images going back years. is this going to copy each one into the cache? I do not understand the Intelligent caching. The description says it does not touch the original images so what happens when images are unchached?

I really need a decent watermarking plug in. Does anyone know of another one that will not duplicate all images?

Disasterpiece
01-26-2016, 03:00 PM
Does this take each image and then duplicate it with a watermark?
Yes, but only as they are requested. If you have image 1-1000 in your attachment database and no new attachment requests are made, the watermark-cache is empty. If users request images 20-30, the cache now contains 10 images with a watermark.

We have thousands and thousands of images going back years. is this going to copy each one into the cache? I do not understand the Intelligent caching. The description says it does not touch the original images so what happens when images are unchached?
The original images are untouched, if a user requests an image, the plugin checks if a watermarked copy is already available in the cache. If so, the cached image is shown, if else, the plugin creates a watermarked version of it and stores it in the cache. If the cache is already at maximum capacity, one older cached image will be thrown out beforehand.

It duplicates only images that are requested by the user (read: shown) and the number of duplicate images at any time is at maximum the number you defined in the settings.

I really need a decent watermarking plug in. Does anyone know of another one that will not duplicate all images?
If you want the plugin not to store the duplicates, set the LRU size to 1 and/or set the cache lifetime to zero.

Altough I don't recommend that, you can still get the functionality like this.

RichieBoy67
01-26-2016, 07:48 PM
Thanks!

My main concerns are server resources and storage and having images watermarked when either hotlinked to other sites or downloaded.

Disasterpiece
01-26-2016, 08:18 PM
server resources
Well, applying image data takes some time to process. The point of the cache is to reduce server load, so the same image doesn't have to be processed every time it is requested. Hence, the cache.

and storage
That's what the LRU table size setting is for.

And besides, images aren't that huge. It is 2016, webserver storage capacity isn't weighted in gold anymore, so I don't really see the problem here tbh.

and having images watermarked when either hotlinked to other sites or downloaded.
That is the point of watermarks.

RichieBoy67
01-26-2016, 08:41 PM
Um yes.. I am just confused because the images are being served from the cache? Correct? I do not understand how this can still work without the cache.

And yes storage is still important on a server with multiple sites and hundreds of gigs of images. :)

Disasterpiece
01-26-2016, 08:51 PM
The image would still be saved to the cache temporarily, yes.
With the next image request, the old one would be deleted and the new cache image would be saved to disk as well.

RichieBoy67
01-26-2016, 11:43 PM
Ok, so the issue with this I am trying to understand is that a temporary image with a watermark would be hotlinked and then when the cache is full that image would be removed?

Disasterpiece
01-28-2016, 05:17 PM
Ok, so the issue with this I am trying to understand is that a temporary image with a watermark would be hotlinked and then when the cache is full that image would be removed?

...and be re-generated when it is needed. Yes.

concepts
01-29-2016, 04:57 PM
This works BEAUTIFULLY!!!!

cooltom
03-14-2016, 09:04 AM
I just install your plugin and work fine. Good to not forget setup correct write rights on cache folder :]
Question: How do you "calculate" size of transparent PNG image watermark?

-if u make it big for bigger images , it looks huge on small images
-if you make it good for smaller images it too small on bigger images

No way to resize png base on input image dimension? So u make it big as max allowed size of attachement image and when its smaller it just resize gnp wathermark to sit hight if the image (keep aspekt rato).

Now it just glue imput image and watermak png together.

The idea is have Watermark image same size on every image (doenst matter size of the image).

Thanks for ideas

Tomas

In Omnibus
03-14-2016, 11:40 AM
This modification needs to allow individual image selection.

It's illegal in the United States to watermark an image as your work if it isn't your work.

Love the concept. Can't use it as is.

Disasterpiece
03-16-2016, 11:22 PM
This modification needs to allow individual image selection.
not sure what you mean. which images do you want to select? Those that should be watermarked?

It's illegal in the United States to watermark an image as your work if it isn't your work.
Just put in your ToS and it should be fine. Every one else does the same.
First time I hear about any copyright issues.

If you want to watermark individual images, download them, photoshop them and re-upload them. This mods intended purpose is to do it autonomous, so no filtering planned.

RichieBoy67
08-02-2016, 11:16 PM
not sure what you mean. which images do you want to select? Those that should be watermarked?


Just put in your ToS and it should be fine. Every one else does the same.
First time I hear about any copyright issues.

If you want to watermark individual images, download them, photoshop them and re-upload them. This mods intended purpose is to do it autonomous, so no filtering planned.Put what in your tos? have a sample?

skyg
08-03-2016, 03:57 AM
4.2.4 work?

MarkFL
08-03-2016, 04:05 AM
4.2.4 work?

I see several users report that it works with 4.2.2, so most likely it will work with 4.2.4. :)

keyla31
11-03-2017, 03:14 PM
Work in 4.2.5? Anyone know?

keyla31
11-03-2017, 03:48 PM
Work in 4.2.5? Anyone know?

Working perfectly in 4.2.5