HTTP imaging server that crops, resizes, filters, and optimizes pictures on demand with smart face-aware cropping.
Overview
Thumbor is an HTTP-based imaging service for generating many variants of the same source image by changing URL parameters. It supports common formats and applies resizing, flipping, filters, and optimization as requests arrive rather than pre-rendering every size ahead of time.
Smart cropping uses detection algorithms to find faces and other important features so thumbnails avoid cutting off heads or key subjects. Filter pipelines can chain brightness, contrast, grayscale, blur, and custom extensions, and the service can serve WebP to capable browsers for smaller payloads.
Storage and loading are pluggable: packaged options include local files, HTTP, Redis, and MongoDB, with room for custom loaders and backends such as AWS S3, Rackspace, or Ceph mentioned in overview material. Caching is used to keep repeated transforms fast.
You can install via pip, distribution packages on Debian or Ubuntu, binaries, or an official container image on GitHub Container Registry, then reach the server on its configured HTTP port for transformed URLs.
Key features
- URL-driven resize and crop
- Face and feature aware cropping
- Chained image filters
- WebP delivery for browsers
- Pluggable loaders and storage
- Caching for repeated transforms
- Common raster format support
- HTTP API for many derivatives
Use cases
- Responsive website image sizes
- Mobile thumbnail generation
- Decoupling apps from image storage
- Automated smart crops for avatars
- On-the-fly filter and format tweaks