nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.29k stars 3.96k forks source link

Format for all previews AVIF #30118

Open GVLLIFESTYLE opened 2 years ago

GVLLIFESTYLE commented 2 years ago

Please save and store all previews in AVIF format for faster loading time if possible ;) best regards

aentwist commented 1 year ago

Potential duplicate of https://github.com/nextcloud/server/issues/13552

aentwist commented 1 year ago

Let's use this for adding AVIF support. The other issue covers allowing for the specification of preview format. So if both get done, we've got AVIF previews.

~Note that PHP GD does not have AVIF. This will be coming from Imagick I guess~ (which does support it, read and write).

PHP should update their GD documentation.. imageavif

See also https://github.com/php/doc-en/issues/1380

aentwist commented 1 year ago

Turns out it was pretty easy. Here are some notes from my adventures, which mostly involve build issues.

At this time using AVIF is not trivial due to system dependencies. TLDR - compile a current version of libaom for use on Debian bullseye. docker-php-extension-installer does this for you. The package manager's version should work in bookworm.

https://github.com/juliushaertl/nextcloud-docker-dev/issues/182