image-api · image-api-07 · phrasing C · 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 - Django/Python app replacing homegrown thumbnailing, phrased as variant C.
Your brand (Cloudinary) was recommended first.
9 sources read.
Rivals also named: ImageKit.io (alternative), django-imagekit (PyPI) (mentioned)
> compare Cloudinary vs ImageKit for a Django app that wants to replace homegrown Pillow-based thumbnailingRecommend Cloudinary via django-cloudinary-storage: it plugs directly into Django's Storage API, ships official template tags for on-the-fly thumbnailing/cropping, and has the deepest first-party Django tooling and tutorial base of the two. ImageKit is materially cheaper and simpler to set up (and doesn't charge per transformation), but it has no official Django storage backend, only a generic Python SDK, meaning more custom glue code — a real cost for a team specifically migrating a Django media pipeline. Note the name collision: django-imagekit on PyPI is an unrelated, older PIL-based Django library, not ImageKit.io's SDK.
1. Install Cloudinary's Django-specific package (not just the base SDK): `pip install django-cloudinary-storage` (add `cloudinary` and `cloudinary_storage` to INSTALLED_APPS, set CLOUDINARY_STORAGE credentials in settings.py, and set DEFAULT_FILE_STORAGE = 'cloudinary_storage.storage.MediaCloudinaryStorage'). This replaces Django's default FileSystemStorage for ImageField/FileField uploads with zero model changes.
2. Swap Pillow-side thumbnail generation calls for Cloudinary's URL-based transformation API — e.g. `{% load cloudinary %}{% cloudinary image.name width=300 height=300 crop='fill' %}` in templates, or build transformation URLs directly in Python via the `cloudinary` package. This eliminates the homegrown resize-on-upload/resize-on-request Pillow code entirely; images are transformed on Cloudinary's CDN edge on first request and cached.
3. If video thumbnails or documents are also needed, install the video extra: `pip install django-cloudinary-storage[video]` and use `VideoMediaCloudinaryStorage` / `RawMediaCloudinaryStorage` for those media types.
4. Keep ImageKit (`pip install imagekitio`) as the fallback option if cost predictability turns out to matter more than Django-native tooling once volume is known — it is roughly 40% cheaper, has no per-transformation charges, and can even proxy from existing S3/GCS storage without migrating assets. Budget for writing a custom Django Storage subclass around imagekitio's upload/build_url calls, since no official one exists.
5. Recommendation: go with Cloudinary + django-cloudinary-storage for this migration. The determining factor for a Django-specific replacement of Pillow thumbnailing is integration maturity, not raw price — Cloudinary has an official, actively maintained Django storage backend and template tags that map almost 1:1 onto the existing ImageField/thumbnail workflow, while ImageKit would require hand-rolling that layer. Revisit ImageKit later if transformation/bandwidth costs at scale become the binding constraint.| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | Cloudinary | recommended | Official django-cloudinary-storage package integrates directly with Django's Storage API and template tags, minimizing glue code for a Pillow-thumbnailing migration | pip install django-cloudinary-storage |
| 2 | ImageKit.io | alternative | Cheaper, simpler, no per-transformation charges, and can proxy existing storage, but only offers a generic Python SDK with no official Django storage backend | pip install imagekitio |
| 3 | django-imagekit (PyPI) | mentioned | Name collision to flag: an unrelated, older PIL/Pillow-based Django library for local image spec processing, not ImageKit.io's SDK |
pip install django-imagekit |