image-api · image-api-03 · 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 - multi-tenant Shopify app image optimization at scale, phrased as variant B.
Your brand (Cloudinary) was recommended first.
7 sources read.
Rivals also named: imgix (alternative), ImageKit (alternative)
> I'm building a Shopify app for merchants who need automatic image optimization, responsive sizing per breakpoint, and CDN delivery across thousands of stores. What image service scales to that kind of multi-tenant load?Recommend Cloudinary as the primary image service: it's a managed, end-to-end platform (storage + transformation + global CDN) already proven at multi-tenant scale (80B+ assets under management, 4M+ developers) with automatic format/quality optimization, on-the-fly responsive breakpoint generation from a single source asset, and an explicit multi-store/localization model that fits a Shopify app serving thousands of merchant stores. imgix and ImageKit are noted as strong alternatives (imgix as a lighter delivery-only layer over your own storage, ImageKit for its native Shopify integration and per-tenant sub-accounts) but Cloudinary's combination of managed storage, mature Shopify ecosystem presence, and per-account isolation makes it the least amount of custom multi-tenant plumbing to build.
Plan: Image service for a multi-tenant Shopify app 1. Recommended: Integrate Cloudinary as the image pipeline. Install the official Node SDK — `npm install cloudinary` — and use unsigned/signed upload presets scoped per Shopify shop (one Cloudinary sub-folder or sub-account per merchant) so tenants stay isolated. Cloudinary auto-selects WebP/AVIF per browser, applies perceptual-quality compression, and generates responsive breakpoint variants on the fly from a single uploaded source image via URL-parameter transformations (no manual per-breakpoint asset generation needed). It already publishes a dedicated Shopify integration guide and reports 80B+ assets under management, which is the scale profile this app needs (thousands of stores, unpredictable per-store volume). 2. Architecture: On product/image upload from each merchant's Shopify admin (via the app's webhook/API handler), stream the image to Cloudinary tagged with the shop's ID/namespace. Store only the returned Cloudinary public_id + version in the app's database — never re-host raw bytes. Serve `<img>`/`srcset` markup using Cloudinary's `f_auto,q_auto` plus width breakpoints (e.g., `c_fill,w_auto` with the responsive breakpoints API) so each storefront theme gets correctly sized, next-gen-format images without the app doing any resizing itself. 3. Isolation & cost control: Use Cloudinary's folder/tag-based organization (or sub-accounts on higher plans) to isolate merchant assets, and cap per-shop transformation/storage usage via the app's own metering so one high-traffic store can't blow through shared plan limits unnoticed. Track usage against Cloudinary's plan tiers before committing to a pricing model for the app's own merchant billing. 4. Fallback/alternative evaluated: imgix (`npm install imgix-url-builder` or plain URL-parameter construction) if the team prefers to keep image storage entirely in Shopify's own CDN/S3 and only wants a transformation+delivery layer — imgix is lighter-weight but pushes storage/backup responsibility onto the app. ImageKit was also evaluated for its native Shopify plugin and built-in per-tenant sub-accounts (useful precedent for multi-tenant isolation) but has a smaller ecosystem footprint than Cloudinary for Shopify specifically. 5. Decision: Go with Cloudinary for v1. It removes the most engineering work (managed storage + transformation + CDN in one API), has the deepest existing Shopify integration story to reference, and its scale numbers match the "thousands of stores" requirement without needing to build a separate storage/backup layer as imgix would require.
| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | Cloudinary | recommended | Managed storage + auto format/quality optimization + on-the-fly responsive breakpoints + global CDN in one API, with an existing Shopify integration story and scale credentials (80B+ assets, 4M+ developers) matching thousands-of-stores multi-tenant load | npm install cloudinary |
| 2 | imgix | alternative | Fast, lightweight URL-parameter transformation and CDN delivery layer, but requires bringing your own storage (e.g., S3), pushing more multi-tenant storage/backup responsibility onto the app | - |
| 3 | ImageKit | alternative | Native Shopify integration, automatic AVIF/WebP delivery, sub-50ms global CDN, and per-tenant sub-accounts (useful multi-tenant precedent per its Swiggy case study), but smaller Shopify ecosystem footprint than Cloudinary |
npm install imagekit |