Self-host next-image-transformation
0.0.3Drop-in image optimization API for Next.js apps
- Stars
- 638
What is next-image-transformation?
Next.js Image Transformation is an open-source image optimization service that lets you run your own version of Vercel's Next.js image optimization. A small API written in Bun converts incoming requests into Imgproxy format and passes them on to an Imgproxy instance, which handles the actual resizing, cropping and transformation. Width, height and quality are the transformations supported so far, each applied through a query parameter. Self-hosting goes through a Coolify service template that bundles both components, and a Next.js app hooks into it by declaring a custom loader in next.config.js that points at your optimization domain; the optional ALLOWED_REMOTE_DOMAINS variable limits which source domains can be processed. A hosted cloud variant with a global CDN is also offered by the same team. The project is pre-1.0 (latest tag 0.0.3) and the repository was last pushed in December 2024.
Should you self-host next-image-transformation?
next-image-transformation scores 40/100 on selfhost.directory (how scoring works) and ranks #13 of 13 in Image Processing. It has 638 GitHub stars.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. It is Apache-2.0-licensed and written mostly in JavaScript.
Its closest alternative on selfhost.directory is Rembg (78/100, 25 214 stars). It scores higher overall, so compare the two before you pick. See next-image-transformation vs Rembg side by side.
Features
- Image quality control
- On-the-fly image cropping
- On-the-fly image resizing
- Remote domain allowlist
next-image-transformation README
More in Image Processing
openinaryOpen-source, self-hosted Cloudinary alternative for on-the-fly image/video transforms, S3 storage, and edge caching — run via Docker.
PictSharePictShare is a self-hosted, open-source media hosting service for images, GIFs, MP4s, audio, and text bins with a simple upload API and no database required.
pi-timoloSelf-hosted Raspberry Pi security monitoring using picamera and OpenCV. Creates timelapse videos, motion tracking, and low-light night vision images with rclone sync.
RembgOpen-source, self-hosted background remover: a Python library, CLI and HTTP server that cuts subjects out of images using switchable ONNX models.
ReubahSelf-hosted web tool for converting documents and processing images with support for multiple formats including JPG, PNG, WebP, PDF, DOCX, and more.
SnapOtterOpen-source, self-hosted file-processing suite with 200+ image, video, audio, PDF and document tools, local AI, a REST API and pipelines.
social-image-serverSelf-hosted server that auto-generates unique Open Graph images for every page using headless Chrome. Supports URL capture and custom templates.
ThumborSelf-hosted, open-source imaging server that crops, resizes and filters photos on demand with AI face-aware detection and WebP/AVIF output; runs via pip or Docker.
unbagrndUnbagrnd - Free, Fast & Open-source AI-powered background remover for Windows, macOS, Linux and Android.
url-to-pngSelf-hosted, open-source PNG screenshot service from URLs using Playwright with caching (S3/CouchDB/filesystem) and Prometheus metrics.
withoutbgPython SDK for local and cloud background removal (pip install withoutbg)
CompreFaceOpen-source face recognition system you can self-host. Provides REST API for detection, verification, recognition, age/gender/mask/pose analysis.

0 comments