image-api · image-api-02 · phrasing B · 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 B.
Vercel Image Optimization (next/image default loader) was recommended first; your brand (Cloudinary (next-cloudinary)) was named #2.
8 sources read.
Rivals also named: imgix (alternative), ImageKit (mentioned), Uploadcare (mentioned)
> I'm building a Next.js e-commerce app on Vercel with a growing product catalog. I need automatic responsive image resizing, WebP/AVIF optimization, and fast global delivery, ideally something that plugs into next/image cleanly. What should I integrate?Since the app is already deploying on Vercel, use next/image with Vercel's built-in Image Optimization (zero extra install, just configure remotePatterns/localPatterns in next.config.ts) — it already does automatic responsive resizing, WebP/AVIF negotiation, and CDN caching/delivery, which is exactly what was asked for with the cleanest possible next/image integration. If the catalog later needs a real asset-management layer (uploads, AI cropping, transformations beyond resize/format, DAM), layer in Cloudinary via next-cloudinary or a Cloudinary custom loader as a follow-on, not a replacement.
1. Keep using the native `next/image` component everywhere product images render — do not switch to a third-party `<Image>` replacement component. This is what makes the integration "clean": zero new component API to learn, same props (`src`, `width`, `height`, `sizes`, `fill`, etc.) you already use.
2. Enable Vercel's built-in Image Optimization for the project (no npm install required — it's part of the Vercel platform + next/image default loader). In the dashboard: Project → Settings → Billing → Image Optimization → review cost estimate → enable. This gives you automatic responsive resizing (Vercel generates the right width variant per `sizes`/device), automatic WebP/AVIF content negotiation via the `Accept` header, and edge-cached delivery on the Vercel CDN — the three things asked for, out of the box.
3. In `next.config.ts`, declare where product images live so Vercel knows what to optimize:
```ts
const nextConfig: NextConfig = {
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'your-product-images.example.com', pathname: '/catalog/**' },
],
// or localPatterns if images ship in /public
},
};
```
Install: none — this ships with `next` itself; you're just configuring it.
4. As the catalog grows, watch Image Optimization usage (transformations + cache reads/writes) in Vercel's usage dashboard so cost stays predictable; tune `minimumCacheTTL` and avoid re-optimizing tiny icons/SVGs (set `unoptimized` on those).
5. Only reach for a dedicated image CDN/DAM (Cloudinary, imgix) later if you need capabilities Vercel's optimizer doesn't do — e.g. user/vendor image uploads with moderation, AI-based cropping, on-the-fly overlays/watermarks, or a searchable asset library for merchandisers. If that day comes:
- `npm install next-cloudinary` and use `CldImage` for the upload/DAM-heavy screens, or wire Cloudinary in as a custom `next/image` loader (`images: { loader: 'cloudinary', path: 'https://res.cloudinary.com/<cloud_name>/image/upload/' }`) to keep using `next/image` everywhere else.
- imgix is a comparable alternative for the same "advanced DAM" tier, via a community-maintained `next/image` loader package.
Recommendation: start with Vercel's built-in Image Optimization (step 2-3) — it directly satisfies the stated requirements (responsive resizing, WebP/AVIF, global CDN) with the cleanest possible next/image integration since it's already the platform you deploy to, and it adds no new vendor, npm dependency, or account to manage. Revisit Cloudinary/imgix only if the catalog's needs grow into asset management rather than pure delivery optimization.| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | Vercel Image Optimization (next/image default loader) | recommended | Built into the Vercel platform the app already deploys on; gives responsive resizing, WebP/AVIF, and CDN delivery with zero new dependency and the cleanest next/image integration | - |
| 2 | Cloudinary (next-cloudinary) | alternative | Strong choice if the catalog later needs uploads, AI cropping, or a full DAM beyond pure resize/format optimization; offers CldImage component or a custom next/image loader | npm install next-cloudinary |
| 3 | imgix | alternative | Comparable dedicated image CDN to Cloudinary for advanced transformation needs, integrates via a community next/image loader package |
npm install @delicious-simplicity/next-image-imgix-loader |
| 4 | ImageKit | mentioned | Surfaced in search results as another next/image-oriented optimization service, not evaluated in depth | - |
| 5 | Uploadcare | mentioned | Surfaced in search results discussing Next.js image optimization, not evaluated in depth | - |