---
title: "Supabase Storage v2: Image resizing and Smart CDN"
description: "Supabase Storage adds on-demand image resizing via imgproxy, storage webhooks, rate-limiting and a Smart CDN that invalidates cached objects globally within about 60 seconds of an update or delete."
url: "https://swe.quest/articles/supabase-storage-v2-image-resizing-and-smart-cdn-c8ff869de30d9fa5"
canonical: "https://supabase.com/blog/storage-image-resizing-smart-cdn"
source: "Supabase"
published: "2022-12-13"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 8
tags: ["caching","cdn-edge","storage-systems","system-design"]
---

# Supabase Storage v2: Image resizing and Smart CDN

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2022-12-13, 8 min read, Announcement. Original: [https://supabase.com/blog/storage-image-resizing-smart-cdn](https://supabase.com/blog/storage-image-resizing-smart-cdn)

## Summary

Supabase Storage adds on-demand image resizing via imgproxy, storage webhooks, rate-limiting and a Smart CDN that invalidates cached objects globally within about 60 seconds of an update or delete. Resizing is requested from the client through URL parameters, never upscales beyond the original, and uses resize modes that mirror CSS object-fit. The CDN builds cache keys from ETag, tenant ID, bucket and object name, stored in a global KV store. A cache manager consumes storage webhook events to refresh ETags, which avoids CDN purge limits and raised cache hit rates. The resizer and Storage API run as separate containers so they scale independently, and pricing is per transformed image rather than per transformation.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [CDN & edge](https://swe.quest/tags/cdn-edge.md) (Infrastructure)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- CDN caching basics ([easy posts on CDN & edge](https://swe.quest/tags/cdn-edge.md?difficulty=easy))
- HTTP cache headers ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- object storage ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))

## Keywords

Supabase Storage, imgproxy, Smart CDN, Sharp, Imaginary, S3, ETag

## Related posts

- [Supabase Storage v3: Resumable Uploads with support for 50GB files](https://swe.quest/articles/supabase-storage-v3-resumable-uploads-with-support-for-50gb-files-bff6f0225c2de6f0.md): Supabase · 2023-04-12 · Medium · 7 min read · Storage systems, PostgreSQL, Concurrency, API design
  Supabase Storage v3 adds resumable uploads via the open TUS protocol, raising the max file size to 50GB on Pro plans.
- [Scaling a SaaS application on Railway](https://swe.quest/articles/scaling-a-saas-application-on-railway-5732010c40cc6710.md): Railway · 2024-12-13 · Medium · 10 min read · Scaling, Caching, CDN & edge, Deployment, Storage systems
  A Remix and PostgreSQL job board on Railway is scaled up with a staging environment tied to a \`stage\` branch, automatic vertical scaling, and horizontal replicas.
- [Rearchitecting Hugging Face Uploads and Downloads](https://swe.quest/articles/rearchitecting-hugging-face-uploads-and-downloads-9e61a9e3c6d67f4e.md): Hugging Face · 2024-11-26 · Medium · 7 min read · Storage systems, System design, CDN & edge, Cloud platforms, Capacity planning
  Hugging Face's Xet team is replacing the Hub's direct-to-S3 uploads and CloudFront downloads with a content-addressed store (CAS) built on "dumb reads, smart writes": reads fetch reconstruction info from CAS, and writes are chunked, deduplicated and validated before reaching S3.
- [Build a Simple Image Resizing API in less than 100 LOC](https://swe.quest/articles/build-a-simple-image-resizing-api-in-less-than-100-loc-5c6fb2fd73d43c52.md): Deno · 2023-02-08 · Medium · 6 min read · TypeScript, WebAssembly, Serverless, API design
  An HTTP image resizing API built on Deno uses imagemagick\_deno, ImageMagick compiled to WebAssembly, and fits in under 100 lines of TypeScript.
- [Supabase Storage now in Beta](https://swe.quest/articles/supabase-storage-now-in-beta-146dd8398549e2a4.md): Supabase · 2021-07-27 · Medium · 7 min read · Storage systems, Identity & auth, PostgreSQL, JavaScript
  Supabase Storage moves to Beta with range-request streaming for audio/video, whole-bucket public visibility (private by default, to avoid S3-style per-object exposure), directory uploads via the File and Directory Entries API, an RLS policy editor with SQL templates, and a local-filesystem backend so self-hosted setups need no S3.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
