
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
- create subdomain for function
I have deployed my react project on Appwrite using Sites feature. I have added custom DNS on namecheap. I want to create new sub domains for my functions on Ap...
- Adding custom domain to Appwrite project
My app is hosted on Vercel on domain todo.velleb.com. On PC, the OAuth logins like GitHub, Discord and Google work and create the account and log in. On mobile ...
- #support
<#1072905050399191082> any help on that?
