image-api · image-api-03 · 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 - multi-tenant Shopify app image optimization at scale, phrased as variant A.
Your brand (Cloudinary) was recommended first.
8 sources read.
Rivals also named: imgix (alternative), ImageKit (mentioned)
> building a shopify app that needs to optimize and resize merchant product images on the fly, what service should i useRecommend Cloudinary: it exposes a full programmatic Node.js SDK plus a URL-based transformation API that can fetch and resize/optimize a merchant's existing Shopify CDN images on the fly (auto-format, auto-quality, crop/gravity), which fits an app's server-side needs better than ImageKit's Shopify integration (a theme Liquid URL-rewrite, not an app-level API) or imgix (equally capable but requires bringing your own storage bucket, adding setup overhead for a multi-tenant app). Cloudinary's free tier and mature ecosystem also make it the fastest path to shipping.
1. Use Cloudinary as the image optimization/resizing layer for the app. Install: npm i cloudinary 2. In the app backend, use Cloudinary's 'fetch' delivery type (or an authenticated upload) to pull each merchant's existing Shopify CDN product image URL into Cloudinary on first request, so you don't have to re-host every merchant's media library yourself. 3. Build transformation URLs (or use the Node SDK's cloudinary.url()/cloudinary.image() helpers) with f_auto,q_auto plus w_/h_/c_fill,g_auto params to get responsive, auto-format (WebP/AVIF), auto-quality resizes on the fly, cached at Cloudinary's CDN edge. 4. Store only the Cloudinary public_id / derived URL pattern in your app's database per product image, not the transformed binaries, so new sizes/crops can be generated on demand without reprocessing. 5. Add Cloudinary API key/secret to the app's per-shop config (or a single app-wide Cloudinary account with folder-per-shop) and gate usage against Cloudinary's free tier (25 credits/mo) before deciding whether to pass costs through to merchants on a paid plan. 6. Fallback/alternative: if you want to avoid managing a second storage layer, evaluate imgix (npm i @imgix/js-core or just URL-based, no SDK required) — same on-the-fly resize/format capabilities via URL params, but it requires connecting your own S3/GCS bucket as the image origin, which adds infra work for a multi-tenant app. Not recommended as the first choice here given Cloudinary's simpler fetch-from-URL flow. 7. Do not use ImageKit's Shopify integration for this — it's a theme-level Liquid snippet that rewrites storefront image URLs, not an app-facing API, so it doesn't fit a Shopify app that needs to resize/optimize images programmatically from its own backend.
| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | Cloudinary | recommended | Node.js SDK + URL-based on-the-fly transformation API with fetch-from-URL support, ideal for pulling and resizing merchant Shopify CDN images from an app backend | npm i cloudinary |
| 2 | imgix | alternative | Equally capable URL-driven resize/optimize API, but requires connecting your own S3/GCS/Azure storage bucket as the image origin, adding setup overhead for a multi-tenant app | npm i @imgix/js-core |
| 3 | ImageKit | mentioned | Has a Shopify integration, but it's a theme Liquid URL-rewrite for storefront pages, not an app-level API suited to programmatic backend resizing |
| - |