使用 Http 代理修改图像

发布于 2024-07-14 04:27:55 字数 257 浏览 4 评论 0原文

愚人节即将到来。 我想玩这个恶作剧,我们使用 http 代理来修改通过代理传输的图像。 有人告诉我 ISA/Squid 有一些脚本/插件可以做到这一点,但我自己找不到太多。

理想情况下,我们希望在通过代理传入的每个 .gif/.jpeg/.png 之上叠加另一个图像。唯一的问题是我不知道如何执行此操作!

如果我有选择的话,我宁愿用 ISA 而不是 Squid,但乞丐不能挑剔。 如果你能想到另一种方式,我也愿意!

April fools is coming up. I'd like to play this prank where we use an http proxy to modify images as they come through the proxy. I've been told that there are scripts/add-ons to ISA/Squid that can do this but I haven't been able to find much on my own.

Ideally, we'd like to superimpose another image on top of every .gif/.jpeg/.png that comes through the proxy. The only problem is I have no idea how to do this!

If I had my choice I'd rather do it with ISA than Squid, but beggars can't be choosers. If you can think of another way I'm open to that too!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我很OK 2024-07-21 04:27:55

看这里:The Upside-Down-Ternet ;)

你需要替换脚本中的调用来添加附加图像。 ImageMagick 将是一个很好的工具。

Look here: The Upside-Down-Ternet ;)

You would need to replace the call in the script to add your additional image. ImageMagick would be a good tool for that.

没︽人懂的悲伤 2024-07-21 04:27:55

我也没有太多想法,但我有一个概念你可以尝试。

获取一个缓存代理,让它缓存所有你想要恶作剧的页面。

然后以某种方式操纵缓存,就像代理缓存 test.jpg 一样,进入其缓存,并将该 test.jpg 替换为另一张大小和尺寸几乎相似的图片。

然后你必须让代理在一段时间内不更新其缓存。

好吧,这只是一个概念,希望它能起作用;)

I also dont have much idea, but i have a concept you can try.

Get a caching proxy, make it cache all pages that you want to prank.

then somehow manipulate the cache, like if the proxy caches test.jpg, go into its cache, and replace that test.jpg with another picture that is almost similar in size and dimensions.

Then after you gotta make the proxy not update its cache for a while.

Well its just a concept, hope it works ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文