Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable WebP preview generation without Imaginary #46611

Open
Forza-tng opened this issue Jul 18, 2024 · 0 comments
Open

Enable WebP preview generation without Imaginary #46611

Forza-tng opened this issue Jul 18, 2024 · 0 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement feature: previews and thumbnails

Comments

@Forza-tng
Copy link

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 and avifenc to speed things up. Both can be built statically to make bundling easier.

@Forza-tng Forza-tng added 0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement labels Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement feature: previews and thumbnails
Projects
None yet
Development

No branches or pull requests

2 participants