Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize images on upload #139

Open
jongrim opened this issue Jul 3, 2023 · 2 comments
Open

Optimize images on upload #139

jongrim opened this issue Jul 3, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@jongrim
Copy link
Contributor

jongrim commented Jul 3, 2023

Is your feature request related to a problem? Please describe.
The images uploaded are not optimized for web

Describe the solution you'd like
Images should be optimized to minimize data costs

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@jongrim jongrim added the enhancement New feature or request label Jul 3, 2023
@BigEZ
Copy link

BigEZ commented Dec 18, 2023

I had a look at it and my understanding is that:

  • Supabase will by default use the transform option to download the picture in the target size
  • Supabase buckets will, based on the parameters of this transform request, serve a size appropriate version of the picture
  • should the client support it, the picture is served in WebP for image optimization.

It already looks pretty solid to me. Did you already take care of this, or were you talking about resizing / optimizing picture at upload time to save on storage costs?

@jongrim
Copy link
Contributor Author

jongrim commented Dec 19, 2023

Hey @BigEZ , this issue is a bit stale. I actually did end up implementing supabase's transform option, but then quickly discovered that the number of transforms that happen far exceeds the quota for the current tier.

I'm in a brainstorming / information gathering phase now as I think on what to do next. I've started a discussion to collect some feedback though I haven't had a chance to publicize it yet (I intend to make it more visible around end of the year I think). But it's clear supabase's transform option won't suffice. I've cut down it's usage to just avatars and community images and it's still over the limit, so I'm going to have to reduce it even further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants