Sharp has avif support as well
Anyway, just wanted to point it out, as I encountered this few days ago, once i get done with everything else, will try to think how to come around the error, while we have a fix
Appwrite use php, sharp is only compatible with nodejs
doesn't appwrite use dockered functions as well?
so why not just add sharp in the mix
Cause all code base is on php
btw, you should be able to use sharp on custom function 🙂
i have no idea how i would add that to the on demand functionality
i was refering to the bucket transformation function that is built in
Anyway, from googling, it seems imagick does support webp, and transformations on it
Yes you can, read here : https://appwrite.io/docs/client/storage?sdk=web-default#storageGetFilePreview
output
param
but why no previews for webp, as it seems to be supporting it
webp -> webp
i think it's a bug. i think it's missing from here: https://github.com/appwrite/appwrite/blob/f45905e5456fb0722751b10887e5a488fa3545b8/app/config/storage/inputs.php
nice catch
No here is for input
Oh not see that it's what you want 😄
I was uploading webp 4000x4000, then requesting webp 400x400, wasn't getting preview, that was my concern
Thinks need to update https://github.com/appwrite/docker-base/blob/main/Dockerfile with webp metatypes for that ?
This checks that the input type is one of the allowed ones for preview. See https://github.com/appwrite/appwrite/blob/f45905e5456fb0722751b10887e5a488fa3545b8/app/controllers/api/storage.php#L872
Is imagemagick-dev package include webp lib ?
While it can export to webp, we'll say yes. So true, need to allow webp on input field
Recommended threads
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...
- SyntaxError: Unexpected end of JSON inpu...
I am trying to create a fcm push notification service using appwrite functions with its REST API to invoke that function from my client side app and getting thi...
- Experiencing inconsistent "500 general_u...
I am developing a task management app that uses Appwrite auth. My project is hosted on Appwrite cloud and I've created basic server-side authentication followin...