• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

Watermarking pictures

Is there a way to prevent someone from downloading pictures on to their PC.

I thought of a couple of methods but i'm not sure if it can be done.
1. Prevent someone from being able to right click on a picture (left clicks ok)

2. Show the picture but on download, have it watermarked with our company name

Any help would be appreciated.

1 Solution
Rty this ..



  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->


<SCRIPT LANGUAGE="JavaScript1.1">
<!-- Original:  Martin Webb (martin@irt.org) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Sorry, you do not have permission to right click.");
return false;
return true;

if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
//  End -->

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->


<center>[ Try right-clicking the image and then the text link below ]
<img src="http://javascript.internet.com/img/tjsbutton.gif">
<a href="http://javascript.internet.com">Text Link</a>

<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>

<!-- Script Size:  1.57 KB -->


Sorry but I don't think this option will work.

2. Show the picture but on download, have it watermarked with our company name


myuenAuthor Commented:
Hi Lyonst.

Thanks for your quick reply.  Do you know of any other methods?  My fear is if someone disables javascript in their browser.

Can you suggest any other ways?

Thanks for your help.
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.


Here is a link to some good solutions / alternatives..


I will have another look tomorrow.


Another good article for you to look at ..


Here is an electronic solution for professionals:
You do not need to register with digimarc to add these to your images. Many programs (I use Paint Shop Pro) have the ability to add the information to the image file using the technology of Digimarc without registration.

With all of the "CAPTURE" capabilities anyone can capture a screenfull from the web without any protection. If you want you can show small thumbnails of your pics and link them to the download versions with visible watermarks that you can add using many image processing programs.

The JAVAScript reply by lyonst works well for the novice photo stealer on the web. Another option would be to have a JAVAScript to swap images on download, or display a copyright notice, but both of these can be foiled with a screen capture program.
Heres a trick that I used on my site, (apart from preventing rightclick as part of behaviours in Dreamweaver), you can edit your image by cutting it up into squares about a tenth of the size of the original the benefits are that the image appears (the key word there is appears) to load quicker on users computers, and also your image appears as ten fragments in that users temporary internet files -yes if someone wants your pic bad enough they can access their temp files folder and extract it that way- your pic will appear as a ten piece fragmented image ont heir harddrive.
  The bother of sticthing it will for most, outweigh the desire to steal your image.
It is tedious stuff but if images are your bread & butter then youll do anything to keep your profits up. I fyour using Photoshop then you can make an action to chop up your image into parts.

 Oh actually incidentally there is another option which I saw someone using recenly how it works on the back end I dont know but the image appears on the users computer as a streamed image in java -i know nothing about java, only that you cant copy it or even do screen grabs but I suspect that its a streaming media protocol, which is insuitable for statice htm pages.

  Ok well I hope the image chopping method does for you what its done for me.

incidentally if you are a company and have images to be secured then you really ought to invest in a copy of photoshop even if it be a second hand older copy from ebay or whatever, there are ways to secure images without having to spend money on places like digimarc who will charge you per licence whereas a software solution is pay once-off.

How to do it in photoshop, scan a copy of your company logo and name save it as a .psd file desaturate it use magic wand to remove the white background so that its clear then on the layers pallette set the opacity level to 50% or thereabouts (depending on how visible you want your id to be seen), and save it, save a couple of copies at different sizes for different sizes of images, how to apply them? Open your image of choice in photohop on the security image hit Ctrl+A and then Ctrl+C then on the image to get the security hit Ctrl+V and itll be pasted on top of your image, hit layers merge or flatten image and save for the web, this will do the trick.

  If you need someone to make up the secrutiy image send me your company logo and Ill make up a few for you at different sizes.

I think the eaiest way is to simpley put the image through flash.  A person cannot download a .swf so the only thing they can do is make a screencaption.  This will work fine I believe if your not looking to have it as a background image.

Good Luck
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now