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
Autoconvert assets if browser supports it #18012
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets update this to be a ?format=auto
query param instead. I don’t think we need it to be an environment variable
Updated it to a query option. |
The previous approach did not work because the format property was passed to sharp with the value "auto" and this is not a valid option
Added a quick & dirty (but so far successful) approach in 7922e1c to auto transform images within the app as per #16068 (comment). @Nitwel Could you verify if the idea of allowing the |
It doesn't make sense to allow for But you brought up a good point which is that I did forgot a presets implementation for assets. Added that now. |
Only a quick lint run 😅 and some testing but I'm happy where it's at right now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Nitwel for giving it the finishing touch 😄
This is a great addition, especially from the app side 👍
Nice clean-up, all my tests succeeded!
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
Fixes #16068
Fixes ENG-157
Ref: #15918