ImageMagick coders at vserver

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.3
Virtualmin version 7.7

Hi,
when trying to use the ImageMagic in a vserver, i got the php8.2-fpm error ImagickException: NoDecodeDelegateForThisImageFormat 'JPEG'. Is there any solution to fix the error?

Also, in phpinfo() it show the list of supported format empty.

Isn’t ImageMagic" strictly only a add on to php so would require its own config within your choice of PHP and have nothing to do with Virtualmin. perhaps even specific to your version of PHP. They have their own Git discussion group

Did you install php8.2? Did you install imagick for it?

Hm… just found the solution. Chroot issue again. Now coders are loaded. I do not know if there is any other solution but for me it works.

Because of chroot (jail) the vservers have no ImageMagic coders integrated at vservers. For me, the below actions was the solution.

For new created vservers

  • Create new Jail into Webmin > System > Jailkit Jail Manager with ID “ImageMagick” and comment “ImageMagick libraries” (ID and comment are random)
  • Insert to “Paths to include in Jail” the /usr/lib/x86_64-linux-gnu/ImageMagick*

For existing vservers

  • cd /home/chroot/{ID}
  • cp -r /usr/lib/x86_64-linux-gnu/ImageMagick* usr/lib/x86_64-linux-gnu/

Be aware

  • perform the above from root.
  • the {ID} is the vserver ID.
  • check the ImageMagic paths before to ensure that are the right paths at your server.

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