vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Social Group and Album Enhancements - Watermark Generator (https://vborg.vbsupport.ru/showthread.php?t=263804)

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

Quote:

Originally Posted by RichieBoy67 (Post 2563424)
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.

Quote:

Originally Posted by RichieBoy67 (Post 2563424)
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.

Quote:

Originally Posted by RichieBoy67 (Post 2563424)
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

Quote:

Originally Posted by RichieBoy67 (Post 2563508)
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.

Quote:

Originally Posted by RichieBoy67 (Post 2563508)
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.

Quote:

Originally Posted by RichieBoy67 (Post 2563508)
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

Quote:

Originally Posted by RichieBoy67 (Post 2563533)
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


All times are GMT. The time now is 11:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01207 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete