vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Watermark images (on upload) (https://vborg.vbsupport.ru/showthread.php?t=68438)

Splatt_XP 12-27-2004 01:00 PM

I just stumbled on this hack, seeing it doesn't work.

Searching the ImageMagick site shows multple command line ways of watermarking.

Question: couldn't it just be accomplished by something like this:
PHP Code:

shell_exec('composite -gravity SouthEast -compose plus ' $watermark_image ' ' $original_image ' ' $destination_image); 

If so, where would you put that command?

yoyoyoyo 01-21-2005 03:36 AM

this hack works fine in 3.0.5 and 3.0.6 (just make sure you have a transparent .png file)

T3MEDIA 01-27-2005 12:42 PM

Quote:

Originally Posted by yoyoyoyo
this hack works fine in 3.0.5 and 3.0.6 (just make sure you have a transparent .png file)

Yo Yo are you sure? Your the only one that says it works.
Vb.org sucks man. They tell you to come here to do almost anything besides how to use a if statement and they dont monitor the dam posts.

I should put up a hack that erases your database and put major addition and hack of the month. maybe then they will do something....
jeez. Or maybe its just cuz im moody today. LOL

yoyoyoyo 01-27-2005 02:35 PM

Quote:

Originally Posted by T3MEDIA
Yo Yo are you sure? Your the only one that says it works.
Vb.org sucks man. They tell you to come here to do almost anything besides how to use a if statement and they dont monitor the dam posts.

I should put up a hack that erases your database and put major addition and hack of the month. maybe then they will do something....
jeez. Or maybe its just cuz im moody today. LOL

positive. but you need to have "create thumbnail" turned on and have the right kind of transparent img file as mentioned earlier in the thread. works 100% for me!

steadicamop 02-03-2005 06:37 AM

I have Create Thumbnail enabled, but I only ever had about a quarter of the picture load, when you refresh, you get a shed load of text (just random characters) ... this is a great hack and something I really could do with having on my forum!!

Thanx guys

majgik 02-20-2005 10:26 PM

i have thumbnails enabled and it doesnt work

Bulleh 03-01-2005 11:02 PM

It works on some images for me but not others...

salem65 03-07-2005 09:33 PM

The filesize of the image gets set in the dbase before the watermark is put on. So the image is actually larger. Then in the attachment.php it has header("Content-Length: $filesize"); Well it is only going to read out the amount of the file that is set in the dbase. Comment this line or get the filesize from the actual attachment and it works.

msimplay 03-19-2005 05:35 PM

does this hack watermark on the fly like photopost ?

tanyeri24 04-12-2005 04:07 PM

no it's dont work..

ford351coupe 07-25-2005 05:15 AM

is it possible to change this so it watermarks the images on upload without the need to thumbnail being set? I have someone wanting to watermark the images, but doesn't want to thumbnail them, and watermarking on the fly isn't working out for the users.

Denno 07-28-2005 02:20 PM

Does this also work with 3.0.7?

Feckie (Roger) 07-28-2005 04:01 PM

Quote:

Originally Posted by Denno
Does this also work with 3.0.7?

Yep i had the same result

Denno 07-28-2005 05:37 PM

Ok cool ++++. Will try this out now then.

Denno 07-28-2005 06:17 PM

Hmm does not seem to work...maby I got the path wrong..nothing happens.

Denno 08-04-2005 10:34 AM

Any ideas?

SilentNoise 08-12-2005 09:01 AM

Quote:

Originally Posted by Denno
Hmm does not seem to work...maby I got the path wrong..nothing happens.

I've got the right path and everything, and I'm running v3.0.8, but getting nothing

FightRice.com 08-17-2005 04:51 AM

I always got nothing everytime i tried this too

Bandolero 08-18-2005 10:00 AM

And here is why:
  • vBulleting loads the original image and keeps a record of the original size in bytes.
  • After a stamp is added to an image its filesize increases.
  • vBulleting will only deliver the original number of bytes to the browser.
  • This causes the browser to NOT display a section at the bottom of the image.
I'm sure there is a way to fix this size problem somewhere in the PHP code or settings, but it became too deep for my resources.

Bk-LS 09-09-2005 05:27 AM

this works fine for jpg so far but I get errors with gifs. The gif uploads, but has the following error message with no watermark on the image. How can I code this watermark hack around gifs? or just to skip gifs?

Quote:

Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /includes/functions_file.php on line 567

Warning: imagecreatefromjpeg(): '/home/domain/my_domain_name.com/VBULL_ATTACH/3/3418.attach' is not a valid JPEG file in /includes/functions_file.php on line 567

Warning: imagealphablending(): supplied argument is not a valid Image resource in /includes/functions_file.php on line 568

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/functions_file.php on line 572

Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/functions_file.php on line 577

Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/functions_file.php on line 578

honguyen 10-24-2005 03:29 PM

the error i got, when viewing the original large image is only half, the bottom half of image got blank out all white, anyone got this working fine /

PowerStroke 11-19-2005 06:35 PM

Did anybody get this to work? If so... please post the proper code and instructions. I am in need of a good watermark hack. I have another site that is stealing our images and I can't always keep doing the watermark manually. I could care less about the watermark resizing.

Anybody? :eek:

croportal 12-24-2005 09:09 AM

anyone know hot to do that in 3.5.0 version

Brandon Sheley 01-16-2006 11:43 PM

Quote:

Originally Posted by croportal
anyone know hot to do that in 3.5.0 version


ditto :squareeyed:

Robru 01-24-2006 01:37 PM

Please, Can someone port this to 3.5.x ?

PabloAM 03-07-2006 01:00 PM

Quote:

Originally Posted by Robru
Please, Can someone port this to 3.5.x ?

Who port this hack, He will be the Hackero of the year 2006, and his hack XD

saree 03-29-2006 10:17 PM

Quote:

Originally Posted by PabloAM
Who port this hack, He will be the Hackero of the year 2006, and his hack XD

yes i agree


All times are GMT. The time now is 10:10 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.01376 seconds
  • Memory Usage 1,772KB
  • 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
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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