Warning: Illegal string offset 'html' in /home/nissansi/public_html/forums/cache/skin_cache/cacheid_1/skin_topic.php on line 907
Someone teach me how to watermark images - Hardtuned.net

Jump to content


Someone teach me how to watermark images 

16 replies to this topic

#1 Siddr20

  • Joined:21-July 04
  • Location:Australia NSW
  • Car:Chaser JZX100

Posted 03 April 2009 - 07:24 PM

Just wanting to know how to watermark images properly!!

I googled and read many tutorials and attempted them.. But then i can still use the spot healing brush tool and clone it out etc. .

Then thought whats the point of following some of these guides if i can just clone it out anyways..

I downloaded heaps of free wares then realized its all shit lol

What do you guys do??

Whats your technique?

Im still new to this whole photoshop thing.. So be kind :P

Sidd.

#2 vortex

  • Joined:30-September 06
  • Location:Australia SA
  • Car:'93 Efini RX7 FD3S

Posted 03 April 2009 - 07:38 PM

If you mean watermarks like in the bottom right corner of:

Posted Image

I use a custom script on a unix box with imagemagick, none of that photoshop junk :D

#3 Siddr20

  • Joined:21-July 04
  • Location:Australia NSW
  • Car:Chaser JZX100

Posted 03 April 2009 - 07:41 PM

^ yup thats it :)

I think its time i design a new logo.

Possible if i can borrow your script :P

I use linux :)

#4 vortex

  • Joined:30-September 06
  • Location:Australia SA
  • Car:'93 Efini RX7 FD3S

Posted 03 April 2009 - 07:43 PM

Sure thing mate, i'll PM you with the script.

#5 Siddr20

  • Joined:21-July 04
  • Location:Australia NSW
  • Car:Chaser JZX100

Posted 03 April 2009 - 07:46 PM

OK i just tried to clone out your image and it was so easy to do so..


Or is the point of putting watermarks in the middle of an image so people cant do that sort of stuff??

im confused lol

View Postvortex, on Apr 3 2009, 09:26 PM, said:

Sure thing mate, i'll PM you with the script.

Awesome thanks man.. will give it a try :)

#6 vortex

  • Joined:30-September 06
  • Location:Australia SA
  • Car:'93 Efini RX7 FD3S

Posted 03 April 2009 - 07:59 PM

I guess it depends what you're after. The images on my website it's just there for exposure of the site itself, I'm not really trying to prevent people taking the images and putting them on their own sites at all. All i would ask is that the watermark is either left on, or a link back to the source is included. I don't make money on any of my pics, so i dont really care.

I have written code before to watermark all over a submitted photo though; this was for a photographers website so as you can imagine they were keen on preventing theft/borrowing/external use of the images without permission.

It's a fine line. You can watermark so much that the image is hard to recover, but it'll look average to most people. Or you can watermark just a little bit, but then anyone with photoshop can remove the watermark completely; it's really your call on that of course.

In the PM i've included a URL you may be interested in too, it may do more the kind of watermarking you're after.

#7 Siddr20

  • Joined:21-July 04
  • Location:Australia NSW
  • Car:Chaser JZX100

Posted 03 April 2009 - 08:17 PM

View Postvortex, on Apr 3 2009, 09:42 PM, said:

I guess it depends what you're after. The images on my website it's just there for exposure of the site itself, I'm not really trying to prevent people taking the images and putting them on their own sites at all. All i would ask is that the watermark is either left on, or a link back to the source is included. I don't make money on any of my pics, so i dont really care.

I have written code before to watermark all over a submitted photo though; this was for a photographers website so as you can imagine they were keen on preventing theft/borrowing/external use of the images without permission.

It's a fine line. You can watermark so much that the image is hard to recover, but it'll look average to most people. Or you can watermark just a little bit, but then anyone with photoshop can remove the watermark completely; it's really your call on that of course.

In the PM i've included a URL you may be interested in too, it may do more the kind of watermarking you're after.


Thank you once again for all you help :) I pmd ya back too..

You are right, if someone really wants to steal it they will and if you really watermark your images to the max it just devalues the photo.

Doubt anyone wanna take my work, but back of my head im still paranoid.

#8 L.A.C Photography

  • Joined:14-August 08
  • Car:Nissan Pulsar N15 sss

Posted 04 April 2009 - 02:03 PM

I use 2 different watermarks usually.

One thats only on the bottom left of the image...

Posted Image




And one thats the same as above but with a larger version in the middle of the image. With the opacity turned down low so its 90% transparent.
To me it kind of wrecks an image with the logo in the middle, but if you want to stop some theft its what you have to do i guess. As you said it wont stop everyone, because clone tool works wonders lol... But i make it as hard as i can for people to do it. :)
I had to do this occasionally because ive had images stolen and put on other websites ect.

Posted Image




Posted Image



All my logos are just designed in photoshop, then arranged where i want them to appear in the image and saved as a .PSD .. And I've got a batch watermark program i used called "Batch Watermark"

Only bad thing about doing it the way i do is i have to make separate files for landscape and portrait images. Other than that i find its pretty handy.
Dunno if what ive said helps in any way.. But that explains how i do it. lol :)

#9 oRiCLe

  • Joined:02-September 05
  • Location:Australia NSW
  • Car:Silvia S13

Posted 08 April 2009 - 08:23 PM

i wrote a script in photoshop that resizes the image, adds any image you specify into the bottom left hand corner (or wherever) at what ever size percentage you specify (changable) and does the borders similar to Liam's images above, works for landscape and portrait coz it works out the dimensions and orientation of the image as its processing it :D

just do some research and u should find some photoshop actions that will do similar...

#10 gravy

    has gone to 12ozprophet.. this place fails.

  • Standard Member
  • Classifieds Items
  • PipPipPipPip
  • 1,061 posts
  • Joined:02-September 07
  • Location:Australia ACT

Posted 13 June 2009 - 10:01 AM

Sat morning baw, so I thought I'd contribute some more info into this section..

If you have a website and want to automatically add a watermark to the photos, here is my script:

copy this and save as 'watermark.php'
	<?
		$imagesource =  $_GET['path'];
	$watermarkPath = $_GET['watermark'];
	$filetype = substr($imagesource,strlen($imagesource)-4,4);
	$filetype = strtolower($filetype);
	$watermarkType = substr($watermarkPath,strlen($watermarkPath)-4,4);
	$watermarkType = strtolower($watermarkType);
	
	if($filetype == ".gif")  
		$image = @imagecreatefromgif($imagesource);
	else  
		if($filetype == ".jpg" || $filetype == "jpeg")  
			$image = @imagecreatefromjpeg($imagesource);
		else
			if($filetype == ".png")  
				$image = @imagecreatefrompng($imagesource);
			else
				die();  
	
	if(!$image)
		die();
	
	if($watermarkType == ".gif")
		$watermark = @imagecreatefromgif($watermarkPath);
	else
		if($watermarkType == ".png")
			$watermark = @imagecreatefrompng($watermarkPath);
		else
			die();
		
	if(!$watermark)
		die();
		
	$imagewidth = imagesx($image);
	$imageheight = imagesy($image);  
	$watermarkwidth =  imagesx($watermark);
	$watermarkheight =  imagesy($watermark);
$startwidth = (($imagewidth - $watermarkwidth) );
$startheight = (($imageheight - $watermarkheight) ); 
	imagecopy($image, $watermark,  $startwidth, $startheight, 0, 0, $watermarkwidth, $watermarkheight);
	imagejpeg($image);
	imagedestroy($image);
	imagedestroy($watermark);
?>

make your watermark, save as png or gif or whatever and save as 'watermark.png'..

then in your display page, call the script as..
<img src="watermark.php?path=imagepath&watermark=watermark.png">
where imagepath is the path of the image you want to display, eg..
<img src="watermark.php?path=photos/photo1.jpg&watermark=watermark.png">

if someone saves the image from your website, it will save with the watermark on it as well.

enjoy.. :)

Edited by gravy, 13 June 2009 - 10:13 AM.


#11 Siddr20

  • Joined:21-July 04
  • Location:Australia NSW
  • Car:Chaser JZX100

Posted 13 June 2009 - 10:15 AM

Gravy mate much appreciated!! Im going to give this a go since my site is scripted in php.

Thank you so much..


Oh quick question, where on the image does the watermark get placed?

#12 gravy

    has gone to 12ozprophet.. this place fails.

  • Standard Member
  • Classifieds Items
  • PipPipPipPip
  • 1,061 posts
  • Joined:02-September 07
  • Location:Australia ACT

Posted 13 June 2009 - 10:18 AM

View PostSiddr20, on Jun 13 2009, 10:58 AM, said:

Gravy mate much appreciated!! Im going to give this a go since my site is scripted in php.

Thank you so much..


Oh quick question, where on the image does the watermark get placed?

thats cool, happy to share..

it displays the watermark at the bottom right hand corner atm, it can be changed with the $startwidth & $startheight variables..
$startwidth = (($imagewidth - $watermarkwidth) );
$startheight = (($imageheight - $watermarkheight) );

Edited by gravy, 13 June 2009 - 10:19 AM.


#13 Siddr20

  • Joined:21-July 04
  • Location:Australia NSW
  • Car:Chaser JZX100

Posted 13 June 2009 - 10:31 AM

Thank you :)

Will give it a go as soon as i finish uni exams and all..

Cheers mate

#14 019

  • Joined:13-October 09
  • Location:Australia SA

Posted 13 June 2009 - 11:59 AM

View Postgravy, on Jun 13 2009, 10:14 AM, said:

Sat morning baw, so I thought I'd contribute some more info into this section..

If you have a website and want to automatically add a watermark to the photos, here is my script:

copy this and save as 'watermark.php'

if someone saves the image from your website, it will save with the watermark on it as well.

enjoy.. :)

not exactly true. easy enough to get the unwatermarked image by tweaking the url. best bet would be to have your image folders outside the root directory...
ie, store photos here...

/photos/...

and script here...
/public_html/watermark.php

that way no one can get to the unwatermarked images.

#15 gravy

    has gone to 12ozprophet.. this place fails.

  • Standard Member
  • Classifieds Items
  • PipPipPipPip
  • 1,061 posts
  • Joined:02-September 07
  • Location:Australia ACT

Posted 13 June 2009 - 12:46 PM

View Postjay019, on Jun 13 2009, 12:42 PM, said:

View Postgravy, on Jun 13 2009, 10:14 AM, said:

Sat morning baw, so I thought I'd contribute some more info into this section..

If you have a website and want to automatically add a watermark to the photos, here is my script:

copy this and save as 'watermark.php'

if someone saves the image from your website, it will save with the watermark on it as well.

enjoy.. :)

not exactly true. easy enough to get the unwatermarked image by tweaking the url. best bet would be to have your image folders outside the root directory...
ie, store photos here...

/photos/...

and script here...
/public_html/watermark.php

that way no one can get to the unwatermarked images.
yea, what i was saying if someone goes right-click save as it will save with watermark on it...

you could find the unwatermarked image by going through the source code and getting the url of the photo from the image tag.. but yeah i guess you could move the images to another folder... or a better way if you've already got your image locations in a database, would be call the image via a passkey in the image tag, which grabs a location from the database.

#16 UTRIED

  • Joined:11-September 05
  • Location:Australia NSW
  • Car:EsS - 5ifteen

Posted 13 June 2009 - 02:41 PM

instead of all the trouble going through scripts and photoshop, i suggest just resize the images to smaller 'non-high resolution' images.

so basically you have thumbnails and if the visitors click on it, they only get to see 640 x 480 instead of 5000 x 9000 or whatever it may be.

thats what i would do anyway..

youre bound to always get 1 or 2 who save your photos for their own purposes.. maybe ideas, exif data, etc etc

only way to keep them 'unstolen', dont post it online lol. :P

#17 cosmonaut

  • Joined:21-October 05
  • Car:Eunos Cosmo

Posted 13 June 2009 - 10:42 PM

View PostUTRIED, on Jun 13 2009, 02:54 PM, said:

instead of all the trouble going through scripts and photoshop, i suggest just resize the images to smaller 'non-high resolution' images.

so basically you have thumbnails and if the visitors click on it, they only get to see 640 x 480 instead of 5000 x 9000 or whatever it may be.

thats what i would do anyway..

youre bound to always get 1 or 2 who save your photos for their own purposes.. maybe ideas, exif data, etc etc

only way to keep them 'unstolen', dont post it online lol. :P


while the idea of a visual watermark is to protect the ownership of the image, it also doubles as advertising for either a website or photographer.
i know i put shots up on my website, people link my pictures on forums, and people come look at my site. now if i had posted 600x480 pics with no watermark, then where would they go to look for more from that trackday/event etc...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Common Links

  • About Us
  • Privacy Policy
  • User Agreement
  • Help & Support Forums
  • Advertise
  •  

    By your continued use of this site, you agree to follow all Rules & Guidelines and abide by the User Agreement outlined in our Terms & Conditions.

    Hardtuned Network is hosted by Sanity Technology

    Design, Site Management & Hotness provided by Loz.

    Big thanks to all our members and volunteers for making this network what it is today!