Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

some images

Inian31e406c45402
diff --git a/apps/www/_blog/2022-12-13-storage-image-reising-smart-cdn.mdx b/apps/www/_blog/2022-12-13-storage-image-reising-smart-cdn.mdx
index 9f6ab07d1ff..2cc2d690566 100644
--- a/apps/www/_blog/2022-12-13-storage-image-reising-smart-cdn.mdx
+++ b/apps/www/_blog/2022-12-13-storage-image-reising-smart-cdn.mdx
@@ -8,7 +8,7 @@ tags:
- launch-week
date: '2022-12-13'
toc_depth: 3
-youtubeHero: https://www.youtube-nocookie.com/embed/Q1Amk6iDlF8
+youtubeHero: https://www.youtube-nocookie.com/embed/NpEl20iuOtg
---
Today we're introducing three new features for Supabase Storage: Image resizing, webhooks, and a Smart CDN.
@@ -52,7 +52,7 @@ In a head-to-head benchmark, we found the performance to be almost identical, wi
We spent a long time considering what a good developer experience would be for image resizing.
-![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6e7895c7-26c9-4e1a-a315-d047c246ce19/Untitled.png)
+![Resizing sane defaults](/images/blog/launch-week-6/day-2-storage-resize/resize.png)
We landed on a simple, on-demand interface. Downloading a resized image in JavaScript looks like this:
@@ -86,7 +86,7 @@ Behind the scenes, we've provided a few small niceties:
Resizing images can get expensive, so before this release we knew we needed a better caching system. We already provide a “basic” CDN for all projects (including Free-tier), so the important update here is some smarter cache invalidation whenever there are changes.
-![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/62953cea-f5ef-4331-b621-ce17296cf94e/Untitled.png)
+![Caching is hard](/images/blog/launch-week-6/day-2-storage-resize/resize.png)
Our Basic CDN works by adding a 1-hour cache header to every request. After this header expires, we re-check the origin (S3), to see if an image is still available. This parameter is configurable (for example, you can make it one day, or one year).
diff --git a/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/caching.png b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/caching.png
new file mode 100644
index 00000000000..256e17e79af
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/caching.png differ
diff --git a/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/resize.png b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/resize.png
new file mode 100644
index 00000000000..2c98597bb10
Binary files /dev/null and b/apps/www/public/images/blog/launch-week-6/day-2-storage-resize/resize.png differ
diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xml
index 5b059e21a4c..ce3268ce2d9 100644
--- a/apps/www/public/rss.xml
+++ b/apps/www/public/rss.xml
@@ -5,9 +5,16 @@
<link>https://supabase.com</link>
<description>Latest news from Supabase</description>
<language>en</language>
- <lastBuildDate>Sun, 11 Dec 2022 16:04:00 +0000</lastBuildDate>
+ <lastBuildDate>Mon, 12 Dec 2022 16:04:00 +0000</lastBuildDate>
<atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
<item>
+ <guid>https://supabase.com/blog/storage-image-reising-smart-cdn</guid>
+ <title>Supabase Storage v2: Image resizing and Smart CDN</title>
+ <link>https://supabase.com/blog/storage-image-reising-smart-cdn</link>
+ <description>We're introducing new features for Supabase Storage: Image resizing and a Smart CDN.</description>
+ <pubDate>Mon, 12 Dec 2022 16:04:00 +0000</pubDate>
+</item>
+<item>
<guid>https://supabase.com/blog/new-supabase-docs-built-with-nextjs</guid>
<title>New Supabase Docs, built with Next.js</title>
<link>https://supabase.com/blog/new-supabase-docs-built-with-nextjs</link>