![]() |
![]() |
![]() |
||||
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 |
Workin With The Devil
Industry Role:
Join Date: Oct 2004
Location: West Bloomfield, MI
Posts: 51,532
|
watermark pics on the server?
anyone know of a program I can put on the server and have it watermark all my pics without downloading and reuploading my files?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Oct 2002
Location: ICQ: 39-183769
Posts: 8,002
|
Yes. Gallery 2
__________________
![]() ![]() ![]() ![]() I seo'd my hair yesterday and today it's pr7! RIP Texas Dreams ![]() Are you a content producer or program owner sick of tube sites? Contact me on ICQ: 39-183769
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
save the following as .htaccess
this is what the htaccess should look like ( put it in the directory with the pics Code:
AddHandler watermarked .jpg AddHandler watermarked .jpeg AddHandler watermarked .gif AddHandler watermarked .png Action watermarked http://www.yoursite.com/watermarkscript.php make a watermark.png and place it int he same directory as the watermarkscript.php Code:
<?php $watermark = "watermark.png"; $image = $_SERVER["PATH_TRANSLATED"]; 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; }
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
make sure you change that 3rd to last line that says "hahaha" to "==" without the quotes
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Oct 2002
Location: ICQ: 39-183769
Posts: 8,002
|
Very cool Smokey.
__________________
![]() ![]() ![]() ![]() I seo'd my hair yesterday and today it's pr7! RIP Texas Dreams ![]() Are you a content producer or program owner sick of tube sites? Contact me on ICQ: 39-183769
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
Quote:
__________________
hatisblack at yahoo.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
hopefully someone will modify it for us.
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Oct 2002
Location: ICQ: 39-183769
Posts: 8,002
|
Quote:
Take a look at gallery 2 watermark code. It does that. Example: ![]() It should have skarkyfarts logo on the bottom. Now click the link below and refresh to see the non hotlink version. http://www.sharkyfarts.com/gallery/v...etski.jpg.html EDIT: You can set different watermark files as well depending on what's happening... viewed on site, hotlinked, etc.
__________________
![]() ![]() ![]() ![]() I seo'd my hair yesterday and today it's pr7! RIP Texas Dreams ![]() Are you a content producer or program owner sick of tube sites? Contact me on ICQ: 39-183769
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
So Fucking Banned
Industry Role:
Join Date: Jul 2003
Location: Montana
Posts: 46,238
|
Quote:
hit woj up . . . he scripted one for me |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
Quote:
![]() ![]()
__________________
hatisblack at yahoo.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
**Porntrepreneur**
Industry Role:
Join Date: Jul 2004
Location: New York
Posts: 12,788
|
That's fucking cool ... that's exactly what pete was looking for ...
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
So Fucking Banned
Join Date: Nov 2005
Location: Juicy's House! Icq: 265529404
Posts: 2,266
|
thanks smoky!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Workin With The Devil
Industry Role:
Join Date: Oct 2004
Location: West Bloomfield, MI
Posts: 51,532
|
DAMM SMOKEY YOU ARE THE MAN, I owe you a drink in phoenix bro, thats exactly what i want. Thanks Bro
|
![]() |
![]() ![]() ![]() ![]() ![]() |