要先确保 ImageMagick 已经正常,才能使用。

2009/12/6 D-Horse <[email protected]>

> 我安装了PerlImage(http://www.imagemagick.org/script/perl-
> magick.php#installation)
> 运行网站上的一个例子(如下)的时候,出现了“递归太深,堆栈溢出”的错误,程序无法执行,有人遇到过这种错误么?该怎么解决呢?谢谢!
>
> 代码的例子是:
>  #!/usr/local/bin/perl
>  use Image::Magick;
>  my($image, $x);
>  $image = Image::Magick->new;
>  $x = $image->Read('girl.png', 'logo.png', 'rose.png');
>  warn "$x" if "$x";
>  $x = $image->Crop(geometry=>'100x100+100+100');
>  warn "$x" if "$x";
>  $x = $image->Write('x.png');
>  warn "$x" if "$x";
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。
 要在此论坛发帖,请发电子邮件到 [email protected]
 要退订此论坛,请发邮件至 [email protected]
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

回复