---
title: "Discussion on \"Supabase Storage CDN and Transformation with Serverless function (Unofficial)\" | Hashnode"
description: "Discussion on \"Supabase Storage CDN and Transformation with Serverless function (Unofficial)\". This tutorial is just a temporary alternative, while Supabase team is working hard to ship more and more features, where Storage CDN and Transformation is in their pipeline.\n\n\nsource: https://supabase.io/storage\n\n⭐🎉🎊\nOn that note, congratulations S..."
url: "https://hashnode.com/posts/supabase-storage-cdn-and-transformation-with-serverless-function-unofficial/613c167e22b7a41dfe5fb3c1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Supabase Storage CDN and Transformation with Serverless function (Unofficial)](https://blog.zernonia.com/supabase-storage-cdn-and-transformation-with-serverless-function-unofficial?utm_source=hashnode&utm_medium=feed)

This tutorial is just a temporary alternative, while Supabase team is working hard to ship more and more features, where Storage CDN and Transformation is in their pipeline. source: https://supabase.io/storage ⭐🎉🎊 On that note, congratulations S...

Sep 11, 2021 · 6 min read · blog.zernonia.com  
Updated Feb 23, 2022  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#serverless](https://hashnode.com/tag/serverless)
-   [#cdn](https://hashnode.com/tag/cdn)
-   [#image-processing](https://hashnode.com/tag/image-processing)

## Written by

[Zernonia](https://hashnode.com/@zernonia)

@zernonia · Malaysia

  
[View profile](https://hashnode.com/@zernonia)

Vue Developer | Supabase Fans 😂

I'm a self-taught Web Developer, and fell in love💚 with VueJS. Working on some articles and open-source project during my free time!

## Responses 1

Markdown supported · ⌘↵ to post

[Boni](https://hashnode.com/@gossterrible)

[Apr 10, 2022](https://hashnode.com/posts/supabase-storage-cdn-and-transformation-with-serverless-function-unofficial/613c167e22b7a41dfe5fb3c1/comment/62526d8f92d73e7055c19131)

Hey Zernonia, Thanks for the tutorial. I notice there was a problem when using this for jpeg images. After the image resize the image's metadata is lost so the original image orientation is lost as well since it's contained in the metadata.

The solution to this will be to add this

```
.withMetadata()
```

before

```
.toBuffer()
```

Happy coding everyone :)
