Upgrade Imagick library to newer version

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.6
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • lighttpd
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx
  • PHP version (e.g, 8.3):
    • 8.3.6
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • recent
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • web download zip
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Hello,
some friends are uploading pictures to nextcloud server from their newest Iphone as HEIC format. This format is not exactly supported by php Imagick version I have installed. It throws in nextcloud error:
ImagickException
Invalid input: Unspecified: Too many auxiliary image references (2.0)

After searching on google it seems to be bug already fixed in new version. How can I upgrade php Imagick to newer version. Did someone tried that?
Do I just update binary in system? Or is it muxed with php plugin?

Php info:

imagick module enabled
imagick module version 3.7.0
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version ImageMagick 6.9.12-98 Q16 x86_64 18038 https://legacy.imagemagick.org
Imagick using ImageMagick library version ImageMagick 6.9.12-98 Q16 x86_64 18038 https://legacy.imagemagick.org
ImageMagick copyright (C) 1999 ImageMagick Studio LLC
ImageMagick release date 2024-03-31

My Imagick version:
convert --version
Version: ImageMagick 6.9.12-98 Q16 x86_64 18038

Thanks.

I managed to fix it. I ha to recompile imagemagick with HEIC support with latest sources.

For anyone wanting going down this path I have few resouces:
https://askubuntu.com/questions/1131996/problems-with-compiling-imagemagick-with-heic/1142317#1142317

This compiles libde265, libheif and imagemagick. Then I recompiled php-magick:
https://askubuntu.com/questions/1131996/problems-with-compiling-imagemagick-with-heic/1355279#1355279
see step #2.

And it worked.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.