diff --git a/Dockerfile b/Dockerfile index 7c1e95b..bcab5ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ RUN \ ffmpeg \ gnu-libiconv \ imagemagick \ + imagemagick-heic \ imagemagick-svg \ libxml2 \ php83-apcu \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index f503383..e42f8ad 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -18,6 +18,7 @@ RUN \ ffmpeg \ gnu-libiconv \ imagemagick \ + imagemagick-heic \ imagemagick-svg \ libxml2 \ php83-apcu \ diff --git a/readme-vars.yml b/readme-vars.yml index a092944..8437080 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -68,6 +68,34 @@ app_setup_block: | If (auto) installed, those built-in packages may cause instability and should be removed. + ### HEIC Image Previews + + In order to enable HEIC image preview generation you will need to add the following to your `config.php` file in your `config/www/nextcloud/config' directory; + + ``` + 'enable_previews' => true, + 'enabledPreviewProviders' => + array ( + 'OC\Preview\PNG', + 'OC\Preview\JPEG', + 'OC\Preview\GIF', + 'OC\Preview\BMP', + 'OC\Preview\XBitmap', + 'OC\Preview\MP3', + 'OC\Preview\TXT', + 'OC\Preview\MarkDown', + 'OC\Preview\OpenDocument', + 'OC\Preview\Krita', + 'OC\Preview\HEIC', + ), + ``` + + You may need to log out and back in for the changes to come in to effect. + + This fix was sourced from [Nextcloud Documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#enabledpreviewproviders) + + Nextcloud state that HEIC preview is disabled by default due to performance or privacy concerns, so enable this at your own risk. + ### Custom App Directories If you are [using custom app directories](https://docs.nextcloud.com/server/latest/admin_manual/apps_management.html#using-custom-app-directories) you will need to make the custom folder(s) you are using available to the web server. The recommended way to do this with our container is to add a volume. Ex: @@ -81,6 +109,7 @@ app_setup_block: | # changelog changelogs: + - { date: "05.04.24:", desc: "Added imagemagick-heic. Manual update to `config.php` required - see above."} - { date: "02.04.24:", desc: "Existing users should update: site-confs/default.conf - Add support for the Client Push (notify_push) plugin and the [new mod](https://github.com/linuxserver/docker-mods/tree/nextcloud-notify-push)."} - { date: "22.03.24:", desc: "Add imagemagick-svg module."} - { date: "06.03.24:", desc: "Rebase to Alpine 3.19 with php 8.3."}