image-api · image-api-02 · 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 - Next.js e-commerce product image pipeline, phrased as variant A.
Your brand (Cloudinary) was recommended first.
6 sources read.
Rivals also named: ImageKit (alternative), Vercel Image Optimization (next/image) (alternative), imgix (mentioned), Akamai Image Manager (mentioned)
> add automatic product image resizing, optimization, and cdn delivery to my next.js store, what should i useRecommended Cloudinary via the next-cloudinary SDK because it combines asset storage, upload, automatic format/quality optimization (q_auto/f_auto), on-the-fly resizing, AI-based cropping, and CDN delivery in one product-focused service, which fits a store's need to manage a growing product image catalog. ImageKit was noted as a lighter-weight, cheaper-at-scale alternative if images already live in a bucket/CMS, and Next.js's built-in next/image plus Vercel's image optimization was flagged as sufficient only for smaller catalogs without editorial/upload workflows. Imgix was mentioned as a developer-focused option best suited when assets already sit in S3.
1. Install Cloudinary's official Next.js SDK: `npm install next-cloudinary` (also create a free Cloudinary account and grab your cloud name). 2. Set `NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME` (and API key/secret for uploads) in `.env.local`. 3. Migrate product image storage to Cloudinary (upload via their widget/API on product create), then swap `next/image` for `<CldImage>` from `next-cloudinary` on product listing/detail pages — it auto-generates responsive `srcset`s and applies `f_auto,q_auto` for format/quality optimization and global CDN delivery with zero manual breakpoint code. 4. Use Cloudinary's URL-based transformations (`w_`, `h_`, `c_fill`, `g_auto`/AI cropping) to generate consistent thumbnail, gallery, and zoom sizes on the fly instead of pre-generating multiple image variants at upload time. 5. Alternative if you want to keep images in your existing bucket/CMS and just need faster delivery without full asset-management features: ImageKit (`npm install @imagekit/next`), which offers similar automatic resizing/format conversion/CDN caching at a lower cost for high-traffic, low-transformation-variety catalogs. 6. If the catalog is small and images are already optimized/committed to the repo or a simple host, Next.js's built-in `next/image` component (with correct `sizes` and `priority` props) plus Vercel's built-in image optimization may be enough — no third-party service needed, but it won't give you on-the-fly transformations, AI cropping, or a real asset/upload management layer as the catalog grows. 7. Recommendation: go with Cloudinary + next-cloudinary — it's purpose-built for product-image-heavy ecommerce workflows (storage, upload, resize, optimize, CDN, AI cropping) in a single integrated service, minimizing custom pipeline work.
| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | Cloudinary | recommended | All-in-one storage, automatic resize/optimize (f_auto,q_auto), AI cropping, upload workflow, and CDN delivery purpose-built for product-image-heavy ecommerce catalogs | npm install next-cloudinary |
| 2 | ImageKit | alternative | Lighter-weight, cheaper-at-scale option for automatic format conversion and CDN delivery when images already live in an existing bucket/CMS | npm install @imagekit/next |
| 3 | Vercel Image Optimization (next/image) | alternative | Built-in, no extra cost, fine for smaller catalogs without editorial/upload workflows, but lacks on-the-fly transformations and asset management |
| - |
| 4 | imgix | mentioned | Developer-focused CDN/transformation service, best when product images already live in S3 or another origin store | - |
| 5 | Akamai Image Manager | mentioned | Listed as a supported next/image custom loader provider alongside Cloudinary and imgix | - |