You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
For supabase storage, when you use transform params together with quality parameter in the download method, the returned image will respect the height and width params but ignore the quality. In other words, no matter whether you pass in quality: 20 or quality: 100, the returned image will be the same.
Additionally, the image will be returned in PNG even though WebP would be expected, as I'm working with Flutter Web (Chrome), but this might be a separate issue with Automatic image optimization.
To Reproduce
Steps to reproduce the behavior:
Upload a PNG image to a bucket
Run this in Flutter Web (Chrome) and check the file size, dimensions and image quality in Chrome DevTools
Additional context
Using the same parameters to createSignedUrl and then pasting that URL into Chrome does affect the returned image as expected (different quality and WebP).
I have not tested mobile.
I have not tested other image formats but PNG.
The text was updated successfully, but these errors were encountered:
Describe the bug
For supabase storage, when you use transform params together with quality parameter in the download method, the returned image will respect the height and width params but ignore the quality. In other words, no matter whether you pass in
quality: 20
orquality: 100
, the returned image will be the same.Additionally, the image will be returned in PNG even though WebP would be expected, as I'm working with Flutter Web (Chrome), but this might be a separate issue with Automatic image optimization.
To Reproduce
Steps to reproduce the behavior:
You will see that the downloaded images in 2. and 3. will be PNG, identical file size, of dimensions 480x840 and 100% quality.
Expected behavior
The downloaded images should differ in file size and quality (and be WebP).
Version (please complete the following information):
├── supabase_flutter 2.3.2
│ ├── supabase 2.0.7
│ │ ├── functions_client 2.0.0
│ │ ├── gotrue 2.5.0
│ │ ├── postgrest 2.1.0
│ │ ├── realtime_client 2.0.0
│ │ ├── storage_client 2.0.1
Additional context
Using the same parameters to
createSignedUrl
and then pasting that URL into Chrome does affect the returned image as expected (different quality and WebP).I have not tested mobile.
I have not tested other image formats but PNG.
The text was updated successfully, but these errors were encountered: