GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   best software to watermark images with? (https://gfy.com/showthread.php?t=570242)

nuttyrom 01-30-2006 09:58 PM

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.

kernelpanic 01-30-2006 10:01 PM

I just wrote myself a short PHP script - its not that complicated, processes transparent/true color images perfectly, and does exactly what I want.

SmokeyTheBear 01-30-2006 10:01 PM

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

directfiesta 01-30-2006 10:01 PM

PhotoWatermark prof

http://www.photowatermark.com

Great to use with your logo ....

Dave Foster 01-30-2006 10:02 PM

try Arles....function Images....add logo...select emplacement and transparency....:winkwink:

SmokeyTheBear 01-30-2006 10:07 PM

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;
}
?>

Then make 2 watermark images, one for big pics and another for thumbs..

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


Daruma 01-30-2006 10:07 PM

Compupic Pro

www.photodex.com

chase 01-31-2006 05:23 AM

http://www.picture-shark.com/

Gottis 01-31-2006 05:29 AM

don't tell me there are people still doing this manually!

smokey: Right on

donross 01-31-2006 06:07 AM

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...

MassiveDollars - DonPaul 01-31-2006 07:13 AM

Arles is great :) You can also do it pretty good with ThumbsPlus!

Stallion 01-31-2006 07:28 AM

Thanks for the code Smokey

lelahosting 01-31-2006 10:17 AM

ulead smartsaver has an addon for watermarking


All times are GMT -7. The time now is 12:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123