Debt Settlement - Myspace Backgrounds - Naruto - Gift Ideas - Debt Help

PDA

View Full Version : Disable Save Picture As..


Dolin
Dec 3rd 2007, 3:59 am
Hi is there a Javascript code that allows right click but blocks the save picture as.. . I added one that blocks right click I need to use other functions in the right clicks.

hrcerqueira
Dec 3rd 2007, 5:25 am
I think that's not possible with javascript, what you can do is to put your images in a element background, like this:


<span style="background-image: url(/path/to/image); width: ###px; height: ###px" />


That way, the save image doesn't appear anymore, of course that a more tecnhical user can go inside your html code and see the images path, but that would happen even with some kind of script that hides the save image option.

Hope this helps.

adam.weiner
Dec 3rd 2007, 8:01 pm
I think that's not possible with javascript, what you can do is to put your images in a element background, like this:


<span style="background-image: url(/path/to/image); width: ###px; height: ###px" />


That way, the save image doesn't appear anymore, of course that a more tecnhical user can go inside your html code and see the images path, but that would happen even with some kind of script that hides the save image option.

Hope this helps.


thanks a lot this info helped me out too ;)

hrcerqueira
Dec 4th 2007, 5:07 am
You're welcome :-D

ajsa52
Dec 4th 2007, 12:10 pm
Another option is split your image in several tiles, and display those tiles together in a table or div.
However the user always can save your picture, using a Print+Screen
Al least, using that method your images tiles won't be used directly on another sites.

James McMurray
Dec 4th 2007, 12:21 pm
You can also cover them with a transparent gif/png stretched to the image's exact dimensions. If they right click -> save as they'll get a dialog box for the save, and may not realize until later that they've saved the wrong thing.

hrcerqueira
Dec 4th 2007, 12:33 pm
He he that's a cool trick ;-)

James McMurray
Dec 4th 2007, 2:29 pm
I'm not sure if that's how they do it, but I've tried to save some pics on Flickr and gotten a 1x1 transparent gif instead. It only happens on some file extensions, so it might be a bug instead of a security feature.

sojic
Dec 4th 2007, 7:19 pm
In Firefox there is:

Tools->Page Info->Media

You can not disable or... whaterver this feature.

joebert
Dec 4th 2007, 11:33 pm
You're opening up a can of worms trying to prevent people from saving things they're already looking at. It's more trouble than it's worth.

Dolin
Dec 11th 2007, 11:15 am
Haha that's a cool trick james. I managed to even block the internet explorer save picture toolbar, but there are other softwares easily available that has their toolbar automatically on to save pictures.

ajsa52
Dec 23rd 2007, 9:22 am
Another option is convert your images to SWF Flash objects before uploading them to the web but if that sounds too impractical, try swfIR (http://www.swfir.com/) (SWF Image Replacement tool).
swfIR is a very simple technique to prevent image download from your website - instead of adding the standard <img> tag for embedding pictures, you define the image location in Javascript and the image will then wrap inside a Flash movie on your webpage.
With swfIR you can apply nice visual effects to your images including borders, rounded corners, small rotations and shadows without actually modifying the original image.
Tech savvy users can easily download the image by looking at the HTML source code of your web page but for the not-so-geeky crowd and image leech software, all they'll see is a blank Flash movie.