Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|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 Put it as an answer and I'll accept it. Really fun to read. –  Antoine Lecaille Jan 19 '13 at 10:24
    
@gertvdijk It would be really cool if you could write that out into a comprehensive answer! –  Seth Feb 28 at 4:27
add comment

1 Answer

up vote 3 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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