This question about Configuration: Answered

ImageMagick not recognized on ImagePlugin installation (Debian 10.2)


I just reinstalled the ImagePlugin (because I has some trouble similar to this question – – which was somehow related to the ImagePlugin and the error could be worked around by disabling the ImagePlugin).

During installation of the ImagePlugin, I got the following message:
   * Image::Magick version >= required -- installed version is 0 - Required

There was no warning about a missing ImageMagick installation before, so I was a bit surprised (should there be one in the configure section?)

I'm always a bit confused with the external perl dependencies but I guess (hope) this time I got it right.

On Debian there ist the "libimage-magick-perl" package, which had already been installed. I reinstalled it. Anyways Foswiki complains there is no ImageMagick on the system.

The description of the package states:
apt-cache show libimage-magick-perl
Description-en: Perl interface to the ImageMagick graphics routines
 PerlMagick is an objected-oriented Perl interface to ImageMagick.
 Use the module to read, manipulate, or write an image or image sequence from
 within a Perl script. This makes it very suitable for Web CGI scripts.
 This is the compatibility (wrapper) perlmagick package that
 use the default channel depth.
 This package provides the perl Image::Magick class.

Checked for the actual ImageMagick perl package ...
dpkg -l |grep libimage-magick
ii  libimage-magick-perl              8:         all          Perl interface to the ImageMagick graphics routines
ii  libimage-magick-q16-perl          8:         amd64        Perl interface to the ImageMagick graphics routines -- Q16 version

... is installed.

  1. Do I have the right ImageMagick for perl package installed?
  2. If yes, shouldn't the ImagePlugin installer recognize it? wink
  3. If no, shouldn't there be a warning in the configure tool or on the InstalledPlugins page?

I don't really use the ImagePlugin (not aware of it, at least), so I cannot tell if it's working correctly. Just wanted to let you know that I stumbled upon this.

Best Regards,


-- EinExperte - 31 May 2020

Try the following for testing purposes:
sudo su - www-data -c 'perl -e "use Image::Magick"'

Also: have a look at FoswikiServerInformation and see if Image::Magick is listed there.

If so, everyghing seems to be just fine. Ignore any other error that you have seen before.

-- MichaelDaum - 31 May 2020

Hello Michael, thanks for your reply, which is very helpful.

I had to change the command (I don't use sudo) to
su -s /bin/bash - www-data -c 'perl -e "use Image::Magick"'
becaus www-data has no login shell. The command exits with no output (return code 0), which seems fine.

Also ImageMagick is listed with the correct version number on the FoswikiServerInformation Topic.

So I conclude there is a bug in the ImagePlugin installer which complains about a missing ImageMagick installation when ImageMagick is actually properly installed.

Best Regards,


-- EinExperte - 05 Jun 2020

I'd rather assume that the installer tests for $Image::Magick::VERSION being defined ... which it is not. Others - such as JSON - do have proper version infos. Room for further investigation ...

-- MichaelDaum - 05 Jun 2020

QuestionForm edit

Subject Configuration
Extension ImagePlugin
Version Foswiki 2.1.6
Status Answered
Related Topics
Topic revision: r5 - 05 Jun 2020, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy