mod_dims
mod_dims is an Apache httpd module that resizes, crops, and reformats images
on request.
/dims5/resize/100x100/?url=https://example.com/cat.jpg&sig=ecd30f9f...
That fetches cat.jpg, resizes it to fit 100 by 100, and returns it.
Nothing is cached. Every variant is produced when it is asked for, so a site keeps one original and serves as many renditions as it needs.
What it does
- Resize, crop, thumbnail, rotate, and flip
- Adjust brightness, sharpness, and colour
- Convert between JPEG, PNG, GIF, WebP, and TIFF
- Composite a watermark
- Strip metadata and set compression quality
Why use it
Image variants on demand. Ask for a size in a template or in frontend code. There is no build step, no batch job, and no second copy of every image.
Signed URLs. A request cannot be altered without the signing key.
Where to start
- Installation runs the container.
- Endpoints describes each URL shape, and how to sign one.
- Operations describes each command.
- Configuration describes each directive.