redarrow Posted February 18, 2009 Share Posted February 18, 2009 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); ?> Quote Link to comment https://forums.phpfreaks.com/topic/145710-watermark-or-not-code-included/ Share on other sites More sharing options...
blueman378 Posted February 18, 2009 Share Posted February 18, 2009 wow redarrow havnt seen you on here for ages man, anyway it depends on the complexity of your images as to weither a water mark will be effective. Quote Link to comment https://forums.phpfreaks.com/topic/145710-watermark-or-not-code-included/#findComment-765034 Share on other sites More sharing options...
redarrow Posted February 18, 2009 Author Share Posted February 18, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/145710-watermark-or-not-code-included/#findComment-765038 Share on other sites More sharing options...
blueman378 Posted February 18, 2009 Share Posted February 18, 2009 i mean a watermark will stop your average joe from stealing images but anyone who is good with a image editor can remove it. whats your site about? Quote Link to comment https://forums.phpfreaks.com/topic/145710-watermark-or-not-code-included/#findComment-765040 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.