#Image upload, and request on transformation if it was webp...

28 messages · Page 1 of 1 (latest)

lilac thistle
#

If we would upload webp to the bucket, and request an image optimization/transoformation link, we would get no image as a result. Png/Jpg works fine. What is Appwrite using under the hood? Sharp?

lilac thistle
#

Interesting, it's more heavy and slower than Sharp which is almost a standard now..

#

In general, Sharp is known to be faster and more lightweight than Imagick. This is because it uses libvips, a fast and efficient image processing library, and it is designed to minimize memory usage by processing images in chunks.
Imagick, on the other hand, is a PHP extension that was ported to Node.js, so it has more overhead and can be slower and more memory-intensive than Sharp.

#

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

vague yew
#

Appwrite use php, sharp is only compatible with nodejs

lilac thistle
#

doesn't appwrite use dockered functions as well?

#

so why not just add sharp in the mix

vague yew
#

Cause all code base is on php

#

btw, you should be able to use sharp on custom function 🙂

lilac thistle
#

i have no idea how i would add that to the on demand functionality

vague yew
lilac thistle
#

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

vague yew
#

output param

lilac thistle
#

but why no previews for webp, as it seems to be supporting it

#

webp -> webp

lilac thistle
#

nice catch

vague yew
#

No here is for input

#

Oh not see that it's what you want 😄

lilac thistle
#

I was uploading webp 4000x4000, then requesting webp 400x400, wasn't getting preview, that was my concern

vague yew
pastel widget
vague yew
#

Is imagemagick-dev package include webp lib ?