any suggestions on software to use to watermark exclusive content with? i've download some but none seem to do well with transparent backgrounds.
best software to watermark images with?
Collapse
X
-
I just wrote myself a short PHP script - its not that complicated, processes transparent/true color images perfectly, and does exactly what I want. -
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 itselfhatisblack at yahoo.comComment
-
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 ....Comment
-
-
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 == )
Then make 2 watermark images, one for big pics and another for thumbs..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
Last edited by SmokeyTheBear; 01-30-2006, 08:09 PM.hatisblack at yahoo.comComment
-
-
Comment
-
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...Email: [email protected] | Skype: ross.alcazarComment
-
Thanks for the code SmokeyComment
-
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]Comment




Comment