Jump to content

watermark or not code included.


redarrow

Recommended Posts

advance thank you.

 

I was going to watermark all my images, encase someone wanted to still all my hard work,

 

I then fort even if i watermark all the images , using the below code , someone can get some type of editing program reproduce the same images again anyway.

 

what your opinion please (is it really needed the water mark))

 

Very stuck in forts , holding me back on getting on with the web site please help.

 

<?php

$file_name="f1.jpg"; // File name on which water mark is to be added
$add="source/$file_name"; // Source directory location
$add2="destination/$file_name"; // Destination directory location
$water_img="wtt7.gif"; // Water Image file

///////////////////////////Settings for the script over////////////

$img_ar=GetImageSize ($add); // reading source image size
$img_wt_ar=GetImageSize ($water_img); // reading water image size


$location_height=300; // Location of water mark
$location_width=300; // Location of water mark

$im=ImageCreateFromJpeg($add); // for main image
$water_img1=ImageCreateFromgif($water_img); // for water image
$newimage=imagecreatetruecolor($img_ar[0],$img_ar[1]);//
imageCopyResized($newimage,$im,0,0,0,0,$img_ar[0],$img_ar[1],
$img_ar[0],$img_ar[1]);
$t=ImageCopy($newimage,$water_img1,$location_width,$location_height,
0,0,$img_wt_ar[0],$img_wt_ar[1]);

ImageJpeg($newimage,$add2,100);
chmod("$add2",0666);

?>

Link to comment
https://forums.phpfreaks.com/topic/145710-watermark-or-not-code-included/
Share on other sites

i am so worried and yee been working hard lol,

 

the thing is the whole web site has not got the name off the site on  the images for the front page.

 

shall i add or not so confused .

 

and i miss you all.

 

((for a design point off view do you all add the www domain name to you front pages on the images or not.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.