Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Watermarking pictures

Posted on 2002-05-08
Medium Priority
Last Modified: 2010-04-06
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.

Question by:myuen
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 15

Expert Comment

ID: 6997168
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 ( -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! -->

<!-- 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="">
<a href="">Text Link</a>

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

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


LVL 15

Expert Comment

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

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



Author Comment

ID: 6997250
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.
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

LVL 15

Accepted Solution

lyonst earned 200 total points
ID: 6997319

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

I will have another look tomorrow.


LVL 15

Expert Comment

ID: 6997326
Another good article for you to look at ..


Expert Comment

ID: 6997509
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.

Expert Comment

ID: 7004435
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.


Expert Comment

ID: 7004448
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.


Expert Comment

ID: 7345574
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

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
In this Micro Tutorial viewers will learn the basic shortcuts and functions of Illustrator. The viewer will learn about the paintbrush tool, anchor points, font sizing, and more.
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question