1

I would like to run commands on images before they come to my browser. For example, I would like to compute the MD5 of the image, then decide whether I should pass it unmodified, pipe it through an image filter (blur it for example), or totally replace it with an image of the same dimensions (for example.. a cat).

I have found a program called webcleaner but it does not seem to be maintained (since 2006) anymore; it can be compiled under Ubuntu 12.04 using a patch but it's using runit http://smarden.org/runit/index.html and I can't find how to start it.

| improve this question | | | | |
  • @Antoine This will be a fun read! In other words: use Squid to have your script called on the request of an image. – gertvdijk Jan 18 '13 at 23:29
  • @gertvdijk It would be really cool if you could write that out into a comprehensive answer! – Seth Feb 28 '14 at 4:27
3

The question was answered in a comment (which the OP indicated answered it), linking to an external source and summarizing its essentials:

This will be a fun read! In other words: use Squid to have your script called on the request of an image.

gertvdijk 2 days ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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