vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Attached Image Watermarking PLUS Guest Viewing of Thumbnails (https://vborg.vbsupport.ru/showthread.php?t=141883)

Bulent Tekcan 04-27-2007 04:51 AM

Quote:

Originally Posted by Ntfu2 (Post 1235882)
You can't watermark images that are not on your server.

How can I use watermark on our server without vBulletin attachment system.For example I need watermark ../testimages/ directory on my server.

Any idea for that ?

bjhuang 04-27-2007 07:02 AM

i mean how to watermark only the attachments on my server that have been linked by other sites. i want to keep the images as it is when browsing by my members. but if the images were "stolen", i want them to be watermarked.

Quote:

Originally Posted by Ntfu2 (Post 1235882)
You can't watermark images that are not on your server.


bjhuang 04-27-2007 11:05 AM

to support gif

PHP Code:

[OPEN]
attachment_watermark.php

[FIND]
    AND 
in_array($extension, array('jpg''jpeg''png')) 

[
REPLACE]
    AND 
in_array($extension, array('jpg''jpeg''png''gif'))
    
[
FIND]
                
$watermark imagecreatefrompng($waterimage);

[
ADD AFTER]
            break;
            case 
'gif':
                
$watermark imagecreatefromgif($waterimage);

[
FIND]
                
$attachimage imagecreatefrompng($attachpath);

[
ADD AFTER]
            break;
            case 
'gif':
                
$attachimage imagecreatefromgif($attachpath); 


datarecall 05-01-2007 04:28 PM

worked excellent quick note to people that are trying this
dont use a transparent gif for your water mark you will get a bunch of errors
i put my watermark in the root directory because for some reason i got errors when putting it into images/watermark.png

thanks for the mod it works great.

Pottsy 05-19-2007 04:13 PM

A while ago I posted about poor image quality with the watermark on.

I fixed this by finding this in attachment_watermark.php:

Code:

imagejpeg($attachimage);


and replacing it with this:

Code:

imagejpeg($attachimage,"",93);
The 93 is the quality of the output, with 100 as max and 50 as grotty.

HTH

ConqSoft 05-19-2007 04:14 PM

Default quality is 75, and is usually fine.

Pottsy 05-20-2007 12:01 PM

https://vborg.vbsupport.ru/external/2007/05/9.jpg

Those are a 1:1 crop of a detail of a pic uploaded and watermarked at the different quality levels. I saved this compilation at 100% quality to try to minimise the effects of another jpg conversion, but it shows the issue I was having. I was getting complaints... :)

ConqSoft 06-14-2007 02:08 PM

I don't really see much of a difference between the 75 and the 93. *shrug*

Kahuna900 06-14-2007 02:47 PM

I added he hack to allow watermarking of "gif" which worked, but it seems to mess with the transparency of the watermark.png file.

FleXy 06-17-2007 04:05 PM

iexampled image isn't realy true color. try image with different colors like HG photo and you will see difference.


All times are GMT. The time now is 11:52 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01374 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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