Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Watermark images (on the fly) Details »»
Watermark images (on the fly)
Version: 1.00, by Robbban Robbban is offline
Developer Last Online: Oct 2005 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-07-2004 Last Update: Never Installs: 42
 
No support by the author.

This is something i made because I couldn't find any hack working for 3.0.7. Just took a couple of minutes.


Works with 3.0.7!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-10-2004, 05:44 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Highlander
depnediung 10 or 20 seconds till the images loads when i cklick on a thumbnail ..

*going to remove it till its working or anyone knows why its not showing up ..
Ditto......
Reply With Quote
  #23  
Old 08-10-2004, 06:27 AM
Ming Keong's Avatar
Ming Keong Ming Keong is offline
 
Join Date: Apr 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The watermarking works great, but images are indeed loading much slower than they used to.

Here's an example of the watermarking for those requesting for one: http://www.pdatrends.com/attachment....tachmentid=676
Reply With Quote
  #24  
Old 08-10-2004, 06:32 AM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

heh, I'm on broadband and that was still slow.
Reply With Quote
  #25  
Old 08-10-2004, 07:20 PM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ming Keong
The watermarking works great, but images are indeed loading much slower than they used to.

Here's an example of the watermarking for those requesting for one: http://www.pdatrends.com/attachment....tachmentid=676
If that image is an indication of how images load.. I'll pass.
Reply With Quote
  #26  
Old 08-11-2004, 02:25 AM
juanchi juanchi is offline
 
Join Date: Apr 2004
Location: Panama
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will definitley call this a great hack but the loading problem keeps this hack from becoming a clasic.
Reply With Quote
  #27  
Old 08-11-2004, 04:14 PM
Robbban Robbban is offline
 
Join Date: Jul 2004
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, yes... I noticed that the "on-the-fly" watermarking isn't good for performance. Going to modify this and release a version that watermarks the uploaded image so the script doesn't have to watermark every image everytime someone requests it.

It will probably be release tonight (in 5h)

For you with problems, here are something to notice:

* It's been tested and developed for version 3.0.3
* watermark.PNG and watermark.png is two diffrent filenames. On unixsystem watermark.PNG will NOT work.
* Live demo can be seen at *WARNING, ADULT SITE* www.synd.nu
Reply With Quote
  #28  
Old 08-11-2004, 07:13 PM
Johnny's Avatar
Johnny Johnny is offline
 
Join Date: Jun 2002
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Robbban
Hmm, yes... I noticed that the "on-the-fly" watermarking isn't good for performance. Going to modify this and release a version that watermarks the uploaded image so the script doesn't have to watermark every image everytime someone requests it.

It will probably be release tonight (in 5h)

For you with problems, here are something to notice:

* It's been tested and developed for version 3.0.3
* watermark.PNG and watermark.png is two diffrent filenames. On unixsystem watermark.PNG will NOT work.
* Live demo can be seen at *WARNING, ADULT SITE* www.synd.nu

sweet i cant wait..
Reply With Quote
  #29  
Old 08-12-2004, 05:56 AM
WretchedXXX WretchedXXX is offline
 
Join Date: Aug 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any updates yet?
Reply With Quote
  #30  
Old 08-12-2004, 08:39 AM
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Location: England
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SIINSI
Very cool, However it is not working in 3.0.1

This is what I have at the end of my attachment.php

echo $attachmentinfo["$imagetype"];
}

Any ideas on how to get this working with 3.0.1?

Thanks,
Miguel

This is a cool hack works well but for it to work on 3.0.0 and by the look of it 3.0.1 you will need to use this code.

find:
Code:
echo $attachmentinfo["$imagetype"];
And replace it with:
Code:
	if (strpos($attachmentinfo['mimetype'],"image/jp")) { $isjpg = 1; }
	if ($isjpg && !$_GET['thumb']) {
	    $filename = "/home/your/path/watermark.png"; // use a PNG-24 to preserve transparency!

	    $im = imagecreatefromstring($attachmentinfo['filedata']);
	    imagealphablending($im, true);

	    $watermark = imagecreatefrompng($filename);

	    $y = imagesy($im) - imagesy($watermark);

	    $w = imagesx($watermark);
	    $h = imagesy($watermark);
	
	    imagecopy($im, $watermark, 0, $y, 0, 0, $w, $h);

	    imagejpeg($im, "", 80);
	} else {
		echo $attachmentinfo["$imagetype"];
	}
Remembering to change your /home/your/path/watermark.png

[high]* Beermonster clicks install[/high]
Reply With Quote
  #31  
Old 08-12-2004, 09:29 AM
Deska's Avatar
Deska Deska is offline
 
Join Date: Aug 2002
Location: Asia
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack work fine at vB 3.0.3
But watermark wont transparant although I use PNG-24 Type

Any idea?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:15 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04906 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete