The self-hosted image backend your application doesn't have to build.
Upload, validate, store, transform, and delete images through one API. Spend less time maintaining image workflows, using your storage and CDN.
# Upload a profile picture
POST /assets/users/123/profile-picture
# Request a cached WebP thumbnail
GET /assets/users/123/profile-picture/-/content?width=256&format=webp
# Replace the picture at the same path
POST /assets/users/123/profile-picture
# Delete this user's images
DELETE /assets/users/123/-/recursiveLess image infrastructure to build and maintain.
Image uploads grow into validation rules, thumbnail workers, replacement history, and cleanup jobs. Configure those workflows in Konifer and share them across your applications.
Use one API for avatars, product galleries, and tenant branding, with storage and processing policies for each image category.
See where Konifer fits- 01
Upload
Accept image files or import them from URLs and S3 object ARNs through one API.
- 02
Validate
Enforce upload size, format, and pixel limits without repeating validation in each caller.
- 03
Store
Keep originals, metadata, and upload history together in your storage.
- 04
Transform
Generate and cache variants after upload or on demand, without a separate thumbnail workflow.
- 05
Replace and delete
Replace an image at the same URL, retrieve previous entries, or delete related images in one request.
Choose image paths that fit your application.
Address a profile picture by user, a gallery by product, or an individual image by ID. Use resource paths, image IDs, or both.
/assets/users/123/profile-picture/assets/products/sku-123/gallery/assets/{imageId}/assets/users/123/images/{imageId}Group related images to apply policies and delete them together. Keep upload and transformation rules in configuration instead of repeating them in each caller. This example limits user images to 15 megapixels and generates profile thumbnails in a dedicated bucket.
Read about path configurationvariant-profiles { thumbnail { width = 256 height = 256 fit = fill rotate = auto format = webp }}
paths { "/users/**" { limits { max-pixels = 15MP } }
"/users/*/profile-picture" { object-store { bucket = "profile-pictures" } transform { eager-variants = [thumbnail] } }}One service alongside your database and image storage.
Run Konifer with PostgreSQL and S3-compatible storage or a persistent filesystem. Image processing and background variant workers run inside Konifer, without a separate message broker or worker deployment.
Add replicas behind a load balancer using shared PostgreSQL and image storage. Your team manages backups, upgrades, and capacity, and supplies application authentication and authorization.
- Processing
- Konifer, including background variant workers
- Image files
- S3-compatible storage or a persistent filesystem
- Asset records
- PostgreSQL for paths, metadata, and variant state
- Delivery
- Your CDN, object-store redirects, or image content from the API
Reuse images and preprocessing across consumers.
Serve display images and raw pixel buffers from the same stored source. Define reusable transformation profiles for your application and vision workers, and share cached results across requests.
Your workers handle tensor construction and model-specific scaling and normalization.
Follow the inference guide- Application
- A WebP thumbnail for a storefront or reviewer.
- Vision worker
- A resized pixel buffer for classification, search, or inspection.
Try the image lifecycle in 10 minutes.
Upload an image, generate a thumbnail, and replace the original without changing its application URL. Try it with in-memory storage; uploaded images disappear when the container stops.
docker run -e IN_MEMORY=true -p 8080:8080 ghcr.io/dmaiken/konifer:latest