Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is there a gallery app or code that will show image that has been uploaded in an certain directory and it will be shown normally but when people download it , it will put a watermark in it

Any advice is welcome

share|improve this question
up vote 0 down vote accepted

It is possible but it's pretty pointless if your rendering the original image which I'll explain. If your rendering the original image then this can be saved using:

  • Right Click Save As..
  • Firebug inspect element (obtain url)
  • Print Screen
  • Cache

Right Click Save As..

Now you can use JavaScript to disable the right click methods but there are many work around for this and is just considered annoying for people who want to steal pictures, it doesn't stop theft.

Firebug inspect element (obtain url)

Using firebug they could obtain the URL of the image and download it that way, of course you could disable direct access to the page but again this doesn't stop people as they can move onto the next method.

Print Screen

There is absolutely no way you can stop people using the print screen button or capture software and importing the image into their favorite image editor.


Most browsers as you know will cache content this includes images so even if you stop right clicking and so forth they could always obtain the image though the cache.


@Itai is absolutely bang on that you would need to view a lower resolution of the original image since there's no way you could stop it. There is a post on how to force downloads of JPG using PHP here: http://stackoverflow.com/questions/5648967/force-download-image

share|improve this answer

No. Although you can do play some tricks, this is not entirely possible. What you must know is that viewing an image is downloading it. For an image to be viewed, it has to be at that time on the viewer's computer. When a browser saves an image it may or may not send a request back to the server. Ideally, it simply saves the image as it was downloaded and shown to the user which avoids consuming bandwidth twice for the same image.

On solution is to simply offer images in watermarked and unwatermarked version. The watermarked version then would be the largest version available and linked to with the disposition header so that it gets downloaded when clicked on. The unwatermarked version then goes show as part of your web page but with a lower resolution. This can be setup automatically and generated automatically via PHP or other server-side technology with image processing ability.

share|improve this answer
It can , but one can simply save the image on the website (un watermarked ) my client's business runs on images of events etc and they have allot of rival , so the best way will be to put both with water mark – Sergerick Apr 21 '13 at 2:17
@Sergerick - If even a small image has value, then you must put a watermark to protect it. This is normal and I do so that myself. Despite this, some photos with watermarked get used illegally but at least people know where they come from. – Itai Apr 21 '13 at 2:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.