Help with major (installation) problem...

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
malch
Posts: 4
Joined: 2011-05-12T11:07:35-07:00
Authentication code: 8675308

Help with major (installation) problem...

Post by malch »

The following program works fine on my Windows system.

use Image::Magick;
$image = Image::Magick->new;
$image->Set(size=>'100x100');
$err = $image->ReadImage('canvas:white');
print "err=$err\n";

On my Linux/CentOS machine it produces:

err=Exception 435: unable to open image `canvas:white': No such file or directory

perl -v
This is perl, v5.8.8 built for x86_64-linux-thread-multi

ImageMagic/PerlMagic were installed with yum and I have already tried reinstalling.
Here are the versions:

ImageMagick.x86_64 6.2.8.0-4.el5_5.3 installed
ImageMagick-c++.x86_64 6.2.8.0-4.el5_5.3 installed
ImageMagick-c++-devel.x86_64 6.2.8.0-4.el5_5.3 installed
ImageMagick-devel.x86_64 6.2.8.0-4.el5_5.3 installed
ImageMagick-perl.x86_64 6.2.8.0-4.el5_5.3 installed

How can I resolve this problem? Any suggestions as to how I can approach a
more detailed diagnosis would be most welcome.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Help with major (installation) problem...

Post by magick »

On older versions of ImageMagick, use xc:white rather than canvas:white.
malch
Posts: 4
Joined: 2011-05-12T11:07:35-07:00
Authentication code: 8675308

Re: Help with major (installation) problem...

Post by malch »

Thank you kind sir!
Post Reply