浏览器扩展, - 在渲染之前访问图像
我是一名拥有良好 IT 背景的摄影师。
我正在寻找可能通过浏览器扩展来拦截网站中图像的渲染。我的计划是在浏览网页时自动识别我的照片的用途。
所以我需要做的 - 请告诉我最好的方法:) - 拦截图像的渲染,读取图像并可能对其进行修改。
扩展/附加组件是一个好方法吗?还有别的办法吗?可能使用 c#...
干杯 马克
I'm a photographer with a good IT background.
I'm looking to intercept the rendering of images in websites, possibly through a browser extension. My plan is to identify the use of my photos automatically when browsing the web.
So what I need to do - you tell me the best way how please:) - is to intercept the rendering of the image, read the image and possibly modify it.
Are extensions/addOns a good approach? Is there another way? Possibly using c#...
Cheers
Marc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这称为数字版权管理 (DRM)。你和 Hollyweird 都希望阻止所有人免费观看。但一旦发布到网络上,只有外行才能阻止人们查看。
这是开始研究的好地方。 http://en.wikipedia.org/wiki/Digital_rights_management
This is called Digital Rights Management (DRM). You as well as Hollyweird would love to stop everyone from free viewing. But once its on the web, only laywers can stop people viewing.
Here's a good place to start your research. http://en.wikipedia.org/wiki/Digital_rights_management
例如,如果您的照片托管在 ImageShack.us 上,您将无法拦截渲染。恕我直言,您可以获得的最接近的是使用水印。
但是,如果您将图像托管在服务器上并使用 C# 中的 ashx 渲染它们,那么您可以在渲染之前读取图像并对其进行修改。
以这段代码为例:
http://www.developerfusion.com/ code/5223/using-ashx-files-to-retrieve-db-images/
因此,您可以使用以下 url 来访问 ashx: www.Marc.com/Images.ashx?id=123
或者,使用浏览器扩展方法,您可以拥有图像的本地存储库或特定的图像名称(使用 GUID),并在加载页面时检测是否有任何图像是您的然后施展你的黑魔法。
If your photo's are hosted on ImageShack.us for example you wont be able to intercept the rendering. IMHO the closest you could get is using a watermark.
However if you host the images on your server and render them out using a ashx in C# then you can read the image and modify it before its rendered.
Take this code as an example:
http://www.developerfusion.com/code/5223/using-ashx-files-to-retrieve-db-images/
So you'd hit the ashx with a url like: www.Marc.com/Images.ashx?id=123
Alternatively with your browser extension approach, you could have a local repository of images or perhaps specific image names (using GUIDs) and when loading a page detect if any of the images are yours and then do your black magic.