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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: File preview webp output doesn't work #6976

Open
2 tasks done
Andree98 opened this issue Oct 22, 2023 · 3 comments
Open
2 tasks done

馃悰 Bug Report: File preview webp output doesn't work #6976

Andree98 opened this issue Oct 22, 2023 · 3 comments
Assignees
Labels
bug Something isn't working product / storage Fixes and upgrades for the Appwrite Storage.

Comments

@Andree98
Copy link

Andree98 commented Oct 22, 2023

馃憻 Reproduction steps

I'm calling the file preview endpoint with output=webp argument to get an image in webp format but in the response the image comes in the jpeg format

  • The original format of the image stored in the bucket is jpeg
  • The image stored in the bucket is smaller than 10MB
  • Including image/* and image/webp accept header in the request doesn't change the outcome *Edit: Including an 'image/webp accept header in the request works but only if the image isn't cached on appwrite
  • The file preview endpoint is being called from the flutter sdk

馃憤 Expected behavior

The preview endpoint response should be an image/webp

馃憥 Actual Behavior

The preview endpoint response is image/jpeg

馃幉 Appwrite version

Appwrite Cloud

馃捇 Operating system

MacOS

馃П Your Environment

flutter sdk: 11.0.0

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@Andree98 Andree98 added the bug Something isn't working label Oct 22, 2023
@adarsh-jha-dev
Copy link

Hey @Andree98 could you please assign this issue to me?

@stnguyen90 stnguyen90 added the product / storage Fixes and upgrades for the Appwrite Storage. label Oct 23, 2023
@stnguyen90 stnguyen90 self-assigned this Oct 23, 2023
@stnguyen90
Copy link
Contributor

@Andree98, thanks for raising this issue from our Discord discussion! 馃檹馃徏 I'll have to play around with this some more to see what's going on.

@Andree98
Copy link
Author

The problem seems to be Appwrite will only send webp images if the request contains an image/webp accept header, which is not the case for some SDKs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / storage Fixes and upgrades for the Appwrite Storage.
Projects
None yet
Development

No branches or pull requests

3 participants