Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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:

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

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

2 Answers 2

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

 
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.