image-api · image-api-05 · phrasing A · Aug 27, 2026, 11:18 AM · runner: cowork-subagent
Coding agent: Claude Code subagent (legacy run) (Anthropic)
Model: claude-sonnet-4-5 · Run via Claude Code subagent via Cowork (legacy)
Use case: image-api buyer question - Go backend on-the-fly image transformation via URL params, phrased as variant A.
imgproxy was recommended first; your brand (Cloudinary) was named #4.
7 sources read.
Rivals also named: Thumbor (alternative), Sharp (alternative), imgix (alternative), flyimg (mentioned), Cloudflare Image Transformations (mentioned)
> go backend serving a photo-heavy app, need on-the-fly resizing and format conversion via url params, what should i useRecommended self-hosting imgproxy (Apache-2.0, written in Go, libvips-backed) as a sidecar service in front of your existing image storage, since it drops straight into a Go stack, does resize/crop/format-conversion entirely through URL parameters, and benchmarks show it's the fastest and lightest of the self-hosted options (imgproxy vs Thumbor vs Sharp). Cloudinary and imgix were noted as strong managed/SaaS alternatives if the team would rather not run and scale the image-processing service itself, and Thumbor was mentioned as an option only if smart/face-aware cropping is a hard requirement.
1. Add imgproxy as a standalone image-processing service in front of your object storage (S3/GCS/etc.) rather than writing resize/convert logic into the Go backend itself: `docker run -p 8080:8080 -it ghcr.io/imgproxy/imgproxy:latest` (or add the ghcr.io/imgproxy/imgproxy image to docker-compose / your k8s manifests for production). It's written in Go, built on libvips, and is Apache-2.0 licensed and free to self-host. 2. Point imgproxy at your existing image storage (source URL, S3 bucket, or local files) via env vars (IMGPROXY_USE_S3, IMGPROXY_LOCAL_FILESYSTEM_ROOT, etc.), then have your Go backend (or the frontend directly) construct imgproxy URLs like `/rs:fill:300:300/g:sm/plain/https://yourbucket/photo.jpg@webp` to resize, crop, and convert format entirely through URL parameters — no per-request work in your own Go handlers beyond generating/signing the URL. 3. Turn on IMGPROXY_KEY / IMGPROXY_SALT URL signing so the resize/convert parameters can't be abused to DoS the service with arbitrary huge transforms, and put a CDN (Cloudflare, Fastly, or your existing CDN) in front of imgproxy to cache transformed variants and keep steady-state cost near zero. 4. Benchmark/monitor memory and CPU under real traffic (imgproxy is reported at ~12ms/transform and ~50MB RAM per the sources reviewed) and scale it horizontally as a stateless service behind a load balancer since it does no persistent state of its own. 5. If the team later wants smart/face-aware cropping, a hosted CDN+transform layer with zero ops (Cloudinary or imgix), or things like automatic format negotiation by Accept header, revisit — those are the natural upgrade paths, but for a straightforward "resize + format-convert via URL params" need in a Go codebase, self-hosted imgproxy is the pragmatic default. Recommendation: self-host imgproxy. It's a purpose-built, Go-native, open-source image proxy that does exactly what was asked (on-the-fly resize + format conversion via URL params), it's fast/lightweight to run alongside a Go backend, and it avoids recurring per-transform SaaS costs that Cloudinary/imgix charge.
| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | imgproxy | recommended | Go-based, self-hosted, purpose-built for URL-param resize/format conversion; fastest/lightest of the self-hosted options and fits naturally into a Go backend | docker run -p 8080:8080 -it ghcr.io/imgproxy/imgproxy:latest |
| 2 | Thumbor | alternative | Self-hosted Python alternative with smart face/feature-aware cropping, but slower and heavier than imgproxy | - |
| 3 | Sharp | alternative | Node.js library with the same libvips backend as imgproxy; only fits if the processing lives inside a Node service, not a standalone endpoint for a Go backend |
npm install sharp| 4 | Cloudinary | alternative | Managed SaaS with URL-param transforms, hosted storage, and SDKs; zero ops but recurring API/bandwidth/storage costs | - |
| 5 | imgix | alternative | Managed SaaS, connects to your own S3/GCS/Azure storage, 200+ URL parameters, credit-based pricing; storage billed separately | - |
| 6 | flyimg | mentioned | Dockerized ImageMagick-based on-the-fly resize/crop/format service surfaced in search results, not evaluated in depth | - |
| 7 | Cloudflare Image Transformations | mentioned | CDN-level resize/optimize-on-the-fly feature surfaced in search results, not evaluated in depth | - |