Nextcloud 20 help with HEIC support via Imagick7

TomComm

Cadet
Joined
Dec 1, 2021
Messages
3
I found the fault on my own.
After trying more and more, I found out that harfbuzz-3.0.0 was installed and that it was not up-to-date, even though I had previously run the command pkg install harfbuzz.
A manual deinstallation of harfbuzz-3.0.0 and then an installation with the command pkg install harfbuzz helped.

The error no longer occurred and I finally got HEIC running as a preview.
 

Aviatorpaal

Dabbler
Joined
Mar 2, 2022
Messages
21
Excellent, thank you for the great guide! This worked like a charm after spending a couple of nights awake looking for workarounds.
 

4ng3l

Cadet
Joined
May 2, 2022
Messages
1
Hello! I have been following a few guides for the past week or so getting Nextcloud up and running and have been successful on everything EXCEPT for HEIC support. I've followed the guide here and when I run "convert -list format | grep HEIC" it lists a few items - and everywhere I've looked this apparently means HEIC is enabled...but it still doesn't work. Does anyone have any suggestions on where to look? Thanks!
 

_shelter_

Cadet
Joined
May 21, 2022
Messages
2
I've compiled HEIC support in PHP before using the same method mentioned here, however now I don't get HEIC support in PHP for some reason.
I even took it one step further and compiled the imagemagick module for PHP, so all versions match now. The only thing that got HEIC support is convert:
Version: ImageMagick 7.1.0-34 Q16-HDRI amd64 20058 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma png raw tiff webp wmf xml zip zli


PHP ImageMagick:
Imagick compiled with ImageMagick versionImageMagick 7.1.0-34 Q16-HDRI amd64 20058 https://imagemagick.org
Imagick using ImageMagick library versionImageMagick 7.1.0-34 Q16-HDRI amd64 20058 https://imagemagick.org
But HEIC isn't listed under ImageMagick supported formats
 

_shelter_

Cadet
Joined
May 21, 2022
Messages
2
I fixed the above issue. Apparently libheic was too old (?) because I had locked the package. I unlocked it and ran pkg update and pkg upgrade then it started to work after I restarted php-fpm.
 
Top