Via boncey.org, a fab little little Servlet Filter trick in Two Servlet Filters Every Web Application Should Have.
Posted to Java by Simon Brunning at February 12, 2004 03:15 PMThe same thing, for Python, Perl and PHP: http://www.mnot.net/cgi_buffer/
Posted by: Mark Nottingham on February 13, 2004 01:09 AMHi,
I have written a servlet which also compresses JPEG pictures by reducing the quality automatically. In addition with a gzip filter your website gets this way optimum sizes :-))
http://www.printx.org/imageshrink/
(free download, sourcecode available)