Enable WebP preview generation without Imaginary #46611
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
enhancement
feature: previews and thumbnails
Hi, I think it would be good if Nextcloud would support generating WebP previews without Imaginary, that is natively using the PHP
gd
functions.PHP has supported WebP a while now, and even AVIF is supported in PHP 8.1
Imaginary can definitely speed up rendering, especially if it can be offloaded to other servers. However, I have found that it can be more picky and sometimes fail to render otherwise supported formats. Running on my local Nextcloud I have disabled Imaginary because of this reason. Imaginary is a slow moving project with its last release 4 years ago.
In any case, I really think it would be beneficial to use PHP gd to render files in WebP format.
I know Imagemagick is not recommended, and if WebP and AVIF generation is too slow with gd, we could perhaps use
cwebp
andavifenc
to speed things up. Both can be built statically to make bundling easier.The text was updated successfully, but these errors were encountered: