Membership is FREE, giving all registered users unlimited access to every DNForum feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Wanted: Service Software to watermark images?

Status
Not open for further replies.

SUNNY ARSLAN

Level 3
Legacy Platinum Member
Joined
Feb 17, 2006
Messages
82
Reaction score
0
I am going to start a wallpapers site and I want to watermark my wallpapers with my site name at the right bottom. I want you people to recommend me some good software so that I can easily watermark my images in batch mode without losing the quality of the wallpapers.
 

namestrands

The Bishop
Legacy Exclusive Member
Joined
Jan 16, 2005
Messages
3,923
Reaction score
6
Simply Overlay your Images with a transparent PNG image with your watermark on it.

Something like this will do it simply. First Create your WaterMark image. Create a file called makeimage.php and use the image tag


PHP:
<img src="makeimg.php?photo=original_photo.jpg">

PHP:
<?php


header("Content-Type: image/jpeg");
//(because the script outputs picture)


$transparency = 40; //watermark's transparency (0-100)


//source photo
$source_photo = stripslashes($_GET['photo']);
$photo = imagecreatefromjpeg($source_photo);

//watermark
$watermark = imagecreatefrompng('watermark.png');
$watermark_width = imagesx($watermark);
$watermark_height = imagesy($watermark);

//location of the watermark on the source image
$size = getimagesize($source_photo);
$dest_x = ($size[0] - $watermark_width) / 2;
$dest_y = ($size[1] - $watermark_height) / 2;

//make the image (merge source image with watermark)
imagecopymerge($photo, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, $transparency);

//output the image
imagejpeg($photo);

//free memory
imagedestroy($photo);
imagedestroy($watermark);

?>
 

SUNNY ARSLAN

Level 3
Legacy Platinum Member
Joined
Feb 17, 2006
Messages
82
Reaction score
0
I have a lot of images & I want batch watermark

Thanks.
 

namestrands

The Bishop
Legacy Exclusive Member
Joined
Jan 16, 2005
Messages
3,923
Reaction score
6
you can manipulate the script above to process an entire directory and output the watermarked files to a new folder.
 

cooljeba

Level 6
Legacy Platinum Member
Joined
Jul 15, 2005
Messages
642
Reaction score
1
as in topic you have mentioned software.. I recommend photoshop.. if you want to do it manually..

Try this watermark tutorial

Hope that helps...

..:: peace ::..
Jeba
 

SUNNY ARSLAN

Level 3
Legacy Platinum Member
Joined
Feb 17, 2006
Messages
82
Reaction score
0
Thanks for the help CoolJeba.

The thing I am looking is to watermark lot of images and want to do in Batch Mode.
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 3) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Upcoming events

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom