[SOLVED] PerlMagick Get() attributes: only partially working in v7.0.8 [reinstalled]
Posted: 2019-09-19T12:45:20-07:00
After the install-from-source exercise, I notice that some of the calls to Get('attribute') return empty.
Here's the simple code:
with only 'depth' and 'version' returning real values:
Depth: 16
Version: ImageMagick 7.0.8-65 Q16 x86_64 2019-09-19 https://imagemagick.org
Width:
Height:
Geometry:
magick:
The fact that at least a couple are right suggest that it's more likely to be a case of calling with the wrong names or format rather than that the install was defective. Again, I'd like to look at what attributes are actually named in the module itself, as-installed, on my machine, but how to do that is still a mystery to me.
Here's the simple code:
Code: Select all
#!/usr/bin/perl
use Image::Magick;
my $imagesrc = Image::Magick->new;
open(IMAGE, 'Source.png');
$imagesrc->Read(file=>\*IMAGE);
close(IMAGE);
my $depth=$imagesrc->Get('depth');
print "Depth: $depth\n";
my $version=$imagesrc->Get('version');
print "Version: $version\n";
my $width=$imagesrc->Get('width');
print "Width: $width\n";
my $height=$imagesrc->Get('height');
print "Height: $height\n";
my $geometry=$imagesrc->Get('geometry');
print "Geometry: $geometry\n";
my $magick=$imagesrc->Get('magick');
print "magick: $magick\n";
Depth: 16
Version: ImageMagick 7.0.8-65 Q16 x86_64 2019-09-19 https://imagemagick.org
Width:
Height:
Geometry:
magick:
The fact that at least a couple are right suggest that it's more likely to be a case of calling with the wrong names or format rather than that the install was defective. Again, I'd like to look at what attributes are actually named in the module itself, as-installed, on my machine, but how to do that is still a mystery to me.