Code: Select all
perl -MImage::Magick -e'my $i=Image::Magick->new; $i->Read("media/ProgressiveExample1-msuqBz.jpg"); warn $i->Get('interlace');'
None at -e line 1.
However, I decided to try to access the same image as an array ref, and this time, the result I got was that it is interlaced:
Code: Select all
perl -MImage::Magick -e'my $i=Image::Magick->new; $i->Read("media/ProgressiveExample1-msuqBz.jpg"); warn $i->[0]->Get('interlace');'
JPEG at -e line 1.
Code: Select all
perl -MImage::Magick -e'my $i=Image::Magick->new; $i->Read("media/ProgressiveExample1-msuqBz.jpg"); warn $i->[1]->Get('interlace');'
Can't call method "Get" on an undefined value at -e line 1.
I also verified with the command line that I can see that the image is interlaced, so I thought that just calling object->get('interlace') would give me the same information, but it doesn't:
Code: Select all
identify -verbose media/ProgressiveExample1-msuqBz.jpg | grep Interlace
Interlace: JPEG