From 56d09b0c95592bb63ca239c5a647a8d00533ecb5 Mon Sep 17 00:00:00 2001 From: Fabrizio Date: Wed, 18 Jan 2023 12:39:09 +0000 Subject: [PATCH] Update apps/docs/pages/guides/storage/image-transformations.mdx Co-authored-by: Inian --- apps/docs/pages/guides/storage/image-transformations.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/pages/guides/storage/image-transformations.mdx b/apps/docs/pages/guides/storage/image-transformations.mdx index 227b492c2b6..e650c18d5e4 100644 --- a/apps/docs/pages/guides/storage/image-transformations.mdx +++ b/apps/docs/pages/guides/storage/image-transformations.mdx @@ -73,7 +73,7 @@ As a result, this will lower the bandwidth that you send to your users and your **Disabling automatic optimisation:** In case you'd like to return the original format of the image and **opt-out** from the automatic image optimization detection, you can pass the `format=origin` parameter when requesting a transformed image, -this is also supported in the SDK starting from v2.2.0 +this is also supported in the JavaScript SDK starting from v2.2.0 ```ts await storage.from('bucket').download('image.jpeg', { @@ -95,7 +95,7 @@ To get started, create a `supabase-image-loader.js` file in your NextJS project const projectId = '' // your supabase project id export default function supabaseLoader({ src, width, height, quality }) { - return `https://${projectId}.supabase.co/storage/v1/${src}?width=${width}&height=${ + return `https://${projectId}.supabase.co/storage/v1/render/image/public/${src}?width=${width}&height=${ height || 0 }&quality=${quality || 75}` }