
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
- getting 401 even with api key with all ...
when i'm usign postman to send a req, it works perfectly but when i use github webhook, it shows auth error The current user is not authorized to perform the r...
- cant add attributes
i have 20 attributes in the table, and when i try to add 1 more, i get error: "The maximum number or size of columns for this table has been reached", is 20 att...
- 500 Server Error
I m getting the above error for a particular table in the databases.
