Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 150x150, some are bigger but all are 1:1 in size.

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

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.)

share|improve this question

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.

share|improve this answer

I don't know of an apache module, but it would be fairly trivial to implement using php, gd, and a very simple set of rewrite rules.

Details on that implementation would probably be best asked over on SO.

share|improve this answer

Your Answer


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.