Serving resized image files

apache-2.2httpimages

Is there an Apache module or similar that will allow me to serve images and varying sizes?

We have a a lot of images (gif, jpeg and png) that are all around 150×150, some are bigger but all are 1:1 in size.

I would like to be able to serve images like this:

http://images.ourserver.com/image/path/realimage.png?50×50
http://images.ourserver.com/image/path/realimage.png?100×100

And get back a resized version of the original file. A cache of the resized file should also be created.

This sounds like a problem that should have already been solved.

(We run currently run CentOS servers but all options will be considered.)

Best Answer

I've never used it myself but I found Apache::Imager:Resize which seems to do what you want and has a few links to related modules.