You are not logged in.
Hi,
Since the perl upgrade to 5.12, I can't save PDF any more in gscan2pdf.
I managed to track down the bug in perl ImageMagick library when gscan2pdf gets height and width of the image (for example line 2751 in file /usr/lib/perl5/site_perl/bin/gscan2pdf).
The error message printed in the console is : "GetList: UnrecognizedType 7" for the "$image->Get('width')"
I tried to recompile ImageMagick but it don't solve the issue. I don't succed to track the bug further as it goes in the C library of ImageMagick.
If someone have a solution or can look at the package, it will be nice
Thx,
Alex
Offline
IIRC the new perl introduced a new path - site_perl is passe, you should use /usr/lib/perl5/vendor_perl/ for the modules.
The next version should fix it.
Offline
I'm experiencing the same problem. A simple example script:
# test.pl
use Image::Magick;
my $image = new Image::Magick;
$image->Read("$ARGV[0]");
my($width, $height) = $image->Get('width', 'height');
print("$width, $height\n");
$ perl test.pl image.png
GetList: UnrecognizedType 7
---
System up-to-date:
imagemagick 6.6.2.10-1
perl 5.12.1-2
$ find /usr/lib/perl5/ | grep -i magick
/usr/lib/perl5/vendor_perl/Graphics/Magick.pm
/usr/lib/perl5/vendor_perl/auto/Graphics/Magick
/usr/lib/perl5/vendor_perl/auto/Graphics/Magick/Magick.bs
/usr/lib/perl5/vendor_perl/auto/Graphics/Magick/Magick.so
/usr/lib/perl5/vendor_perl/auto/Graphics/Magick/autosplit.ix
/usr/lib/perl5/vendor_perl/auto/Image/Magick
/usr/lib/perl5/vendor_perl/auto/Image/Magick/Magick.so
/usr/lib/perl5/vendor_perl/auto/Image/Magick/autosplit.ix
/usr/lib/perl5/vendor_perl/Image/Magick.pm
Last edited by tokland (2010-08-16 12:40:25)
Offline
I'm having the same problem. Likewise with current versions. I've found the source of the message here:
https://subversion.imagemagick.org/subv … /Magick.xs
The GetList routine, lines 836-932.
The type of the reference isn't matching one of the cases. The error message says type 7, which in 5.10 was SVt_PVNV, but in 5.12 is SVt_PVMG.
http://github.com/mirrors/perl/blob/maint-5.10/sv.h#L55
http://github.com/mirrors/perl/blob/maint-5.12/sv.h#L55
I don't have anything else at the moment, but I hope this helps the next person.
Offline
I just ran into this error while trying to run tiv. I have posted a bug report.
Rebuilding imagemagick with the current PKGBUILD resolves the issue.
*edit: accidentally posted the link to vote on the task*
Last edited by Xyne (2010-09-15 04:10:34)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline