![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jan 2003
Location: San Diego
Posts: 256
|
best software to watermark images with?
any suggestions on software to use to watermark exclusive content with? i've download some but none seem to do well with transparent backgrounds.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Join Date: Jan 2005
Posts: 2,961
|
I just wrote myself a short PHP script - its not that complicated, processes transparent/true color images perfectly, and does exactly what I want.
__________________
![]() ZangoCash - Turn Your Traffic Into Ca$h. $.40 Per Install - No Tier |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
what do you plan on using them for and with.. Like you said you have troubles with transparency ? do you mean the image your watermarking or the watermark itself
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,666
|
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT ! But I can't figure out how he can breathe or type , at the same time .... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Registered User
Industry Role:
Join Date: Sep 2005
Location: Montreal, Ca
Posts: 224
|
try Arles....function Images....add logo...select emplacement and transparency....
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
heres a simple php method that might work for you.
first make adirectory called "stb" in your root. ( i.e. http://yoursite.com/stb/ ) copy and paste the following into a new text document and save it as watermark.php ( p.s. gfy screw that last lines of this part of the code up the part that says HAHAHA should be == ) Code:
<?php $watermark = "watermark2.png"; $image = $_SERVER["PATH_TRANSLATED"]; $size = getimagesize("$image"); $width = $size[0]; if ($width > 150) { $watermark = "watermark1.png"; } if (empty($image)) die(); if (!file_exists($image)) { header("404 Not Found"); echo "File Not Found."; die(); } $outputType = getFileType($image); watermark($image, $watermark, $outputType); /** Outputs the image $source with $watermark in the lower right corner. @param $source the source image @param $watermark the watermark to apply @param $outputType the type to output as (png, jpg, gif, etc.) defaults to the image type of $source if left blank */ function watermark($source, $watermark, $outputType="") { $sourceType = getFileType($source); $watermarkType = getFileType($watermark); if (empty($outputType)) $outputType = $sourceType; header("Content-type:image/$outputType"); // Derive function names $createSource = "ImageCreateFrom".strtoupper($sourceType); $showImage = "Image".strtoupper($outputType); $createWatermark = "ImageCreateFrom".strtoupper($watermarkType); // Load original and watermark to memory $output = $createSource($source); $logo = $createWatermark($watermark); ImageAlphaBlending($output, true); // Find proper coordinates so watermark will be in the lower right corner $x = ImageSX($output) - ImageSX($logo); $y = ImageSY($output) - ImageSY($logo); // Display ImageCopy($output, $logo, $x, $y, 0, 0, ImageSX($logo), ImageSY($logo)); $showImage($output); // Purge ImageDestroy($output); ImageDestroy($logo); } function getFileType($string) { $type = strtolower(eregi_replace("^(.*)\.","",$string)); if ($type hahahaha "jpg") $type = "jpeg"; return $type; } ?> name them watermark1.png and watermark2.png put them int he same directory then just copy and paste the following into a new text document and name it .htaccess and uplaod it into each directory you want the images to be watermarked in Code:
AddHandler watermarked .jpg AddHandler watermarked .jpeg AddHandler watermarked .gif AddHandler watermarked .png Action watermarked http://yoursite.com/stb/watermark.php
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Nov 2002
Location: PandaLand™
Posts: 3,494
|
__________________
![]() ![]() ![]() RIP TD
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jul 2004
Location: Tampa Bay
Posts: 6,019
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: May 2004
Location: VIP NO ID
Posts: 1,746
|
don't tell me there are people still doing this manually!
smokey: Right on |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Aug 2005
Posts: 1,295
|
i used adobe imageready for watermaking pics... adjusting the opacity is good in your problem in transparency. if you do know how to create imageready droplet.. just like creating actions... you'll just drag the folder with pics on the droplet then it'll watermark all pics you have on your folder in a minute/s...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Guest
Posts: n/a
|
Arles is great
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Jan 2001
Location: FL
Posts: 6,632
|
Thanks for the code Smokey
__________________
Project Manager/Program Manager/Webmaster Seeking Work [email protected] icq 856554 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Aug 2004
Posts: 484
|
ulead smartsaver has an addon for watermarking
__________________
![]() Your website always needs to be accessible We accept AMEX/Discover/MC/Visa/Paypal/MB/Epass [email protected] |
![]() |
![]() ![]() ![]() ![]() ![]() |