Hi, Ron
It seems the Perl Magick works on my test machine except a small problem.
During the whole process, I think there is two points need to be cared,
First is when I installed the redhat I choose all, so an default perl and
imagemagick will be installed, when u install another, u'd better uninstall it
first. You can use the below command to check:
rpm -qa|grep Magick
rpm -qa|grep Perl
Second, during install ImageMagick and if u want to use PerlMagick, so use the
below configure:
./configure --with-perl=Perl(the path to the perl)
Infact I tried many times according the manual, but no one succeed. The manual
said install ImageMagick first and then install PerlMagick. I don't know
whether others have succeeded according it, but I am not.
Also I have another problem is, the same script in windows is work well, but
under my test platform (rh9) there is a little different.
sub image_resize_width {
my ( $status ) = "resize_ok";
my $i = Image::Magick->new;
$i->Read($file);
if( $! ){ $status = "resize_err" }
$i = $i->Transform(geometry=>$width);
$i->Write($file);
return $status ;
}
Check the above script, if( $! ){ $status = "resize_err" }
In this line, "$!" Always contains a error message ,the method return "
resize_err " always. I tried to print the message ,it was "no such file or
directory". But no more details. But infact it did work,i can get modified
image. So what is it? and which file or directory doesn't exist? And anyway I
can get the details of $! ?
--------------------------------------------------
陶 啓萍(トウ ケイヘイ)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Tel: 86-21 24086688-6933
FAX: 86-21 34293080
〒200241
中国上海市閔行区
紫星路1000号微創大廈
-----Original Message-----
From: Darren Tao
Sent: 2007年5月8日 15:48
To: 'Ron Savage'; [email protected]
Subject: RE: [magick-users] Image Magick can not write a file
Hi, Ron
It is a little out of order in my server. As something was installed when
install the system. I reinstalled the libjpeg. And then remake ImageMagick and
PerlMagick, but still does not work. It seems there is another version
ImageMagick in my system(installed during installed the system), I try to use
it, and also it does not work. Terrible.
During I make test the perlmagick I met some failed case, see below:
[EMAIL PROTECTED] PerlMagick]# make test
/bin/sh ../magick.sh PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM"
"-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bzlib/*.t t/jp2/*.t
t/jpeg/*.t t/png/*.t t/ps/*.t t/tiff/*.t t/x/*.t t/xfig/*.t t/zlib/*.t
t/blob............ok
t/bzlib/read......ok
t/bzlib/write.....ok
t/composite.......ok
t/filter..........ok
t/getattribute....ok
t/jp2/read........ok
t/jpeg/read.......ok
t/jpeg/write......ok
t/montage.........ok
t/png/read-16.....ok
t/png/read........ok
t/png/write-16....ok
t/png/write.......ok
t/ps/read.........ok
t/ps/write........ok
t/read............FAILED test 9
Failed 1/45 tests, 97.78% okay
t/setattribute....ok
t/tiff/read.......ok
t/tiff/write......ok
t/write...........ok
t/x/read..........FAILED test 1
Failed 1/1 tests, 0.00% okay
t/x/write.........ok
t/xfig/read.......ok
t/zlib/read.......ok
t/zlib/write......ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/read.t 45 1 2.22% 9
t/x/read.t 1 1 100.00% 1
Failed 2/26 test scripts, 92.31% okay. 2/337 subtests failed, 99.41% okay.
make: *** [test_dynamic] エラー 29
But it seems have no business with the write or decode delegate.
Best Wishes!
Yours Darren
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users