从网站保存图像 [英] saving image from site

查看:49
本文介绍了从网站保存图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想要做的是当用户尝试保存图像时(使用右键单击),当用户查看他的图像时机器,它是空的或其他图像!



我在某处读到我们可以在图像上添加透明图像,当它们保存文件时它们实际上保存了透明图像而不是图像本身。



谢谢。

Hi,

what i am trying to do is when the user tries to save the image (using right click), when the user views the image on his machine, it is empty or another image!

I read somewhere that we can add transparent image over the image in away that when they save the file they actually save the transparent image and not the image itself.

Thanks.

推荐答案

看来你错过了一些非常重要的东西关于网页如何工作...

当客户端查看页面上的图像时,该图像已经下载到客户端计算机并保存在某个临时文件夹中...

因此,即使用户直接保存该计算机上已有的图像,也可以非常容易地提取...

还可以加载页面表单代码并分析图像并下载所有代码中的图像,没有任何用户交互...

所以你可以看到你不能阻止用户保留图像...

如果你真的很重视这些图像,你可以考虑一种水印,只有付款后才能删除......
It is seems you missing something very important about how web pages are working...
When the client look at the image on your page that image already downloaded to the client computer and saved in some temp folder...
So even to saved directly by the user the image already on that computer and can be extracted very easily...
One also can load your page form code and analyse it for images and download all the images from code, without any user interaction...
So as you can see you can not prevent the user from keeping the image...
If you really value those images, you may consider a kind of watermark, that can be removed only after payment...

这篇关于从网站保存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆