Forum Moderators: coopster

Message Too Old, No Replies

How use Water Mark Effect

Water Mark Effect

         

kuldeep

6:24 am on May 24, 2007 (gmt 0)

10+ Year Member



all image on the application use water mark effect .Image show
with two images, one is background image and another on front.
pls help me..... as possible as soon.......

pageoneresults

6:41 am on May 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld kuldeep!

I've found it much easier to watermark the source image instead of applying a layer as described above. The layer can be comprimised. That watermark needs to be permanently emblazoned on the source image, not layered.

I'd like to know how others are handling this too. I've been batch processing images and embedding watermarks which has made life so much easier. No more fiddling with scripts and the possiblity of those being breached, etc.

vincevincevince

9:24 am on May 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the site is low traffic then do it with GD via PHP on the fly. It's simple enough and there are plenty of snippets at php.net to do just that.

kuldeep

10:19 am on May 31, 2007 (gmt 0)

10+ Year Member




System: The following 2 messages were spliced on to this thread from: http://www.webmasterworld.com/php/3354387.htm [webmasterworld.com] by dreamcatcher - 12:41 pm on May 31, 2007 (utc 0)


hi

i have problem in water mark in gd library,
code i use :
<?php
header('content-type: image/jpeg');

$watermark = imagecreatefrompng('watermark.png');
$watermark_width = imagesx($watermark);
$watermark_height = imagesy($watermark);
$image = imagecreatetruecolor($watermark_width, $watermark_height);
$image = imagecreatefromjpeg($_GET['src']);
$size = getimagesize($_GET['src']);
$dest_x = $size[0] - $watermark_width - 5;
$dest_y = $size[1] - $watermark_height - 5;
imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, 100);
imagejpeg($image);
imagedestroy($image);
imagedestroy($watermark);

?>

error messege :
br />
<b>Warning</b>: imagecopymerge(): supplied argument is not a valid Image resource in <b>/var/www/html/photoorder1/gallery/water.php</b> on line <b>12</b><br />
<br />
<b>Warning</b>: imagejpeg(): supplied argument is not a valid Image resource in <b>/var/www/html/photoorder1/gallery/water.php</b> on line <b>13</b><br />
<br />
<b>Warning</b>: imagedestroy(): supplied argument is not a valid Image resource in <b>/var/www/html/photoorder1/gallery/water.php</b> on line <b>14</b><br />

Habtom

11:49 am on May 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I might be a little bit tired, but I couldn't understand this part of your code:

$image = imagecreatetruecolor($watermark_width, $watermark_height);
$image = imagecreatefromjpeg($_GET['src']);

The problem could be that this $_GET['src'] is not getting the value. Are you sure you have it set right?

Habtom