Very slow to ->Get('format')
Posted: 2013-04-08T23:10:18-07:00
I have a set of small images (640x480) and for some reason Image::Magick is taking a very long time to do the Get->('format') call on them.
With this debug:
I'm getting this timing:
It's regularly taking 3-5 minutes per file for these jpegs. I'm using version 6.82. Is there any known reason why it could take so long to do this? I can display the files using an image editor with no visible delay at all.
With this debug:
Code: Select all
WARN "Reading file";
my $err = $image->Read($media_ref->{path});
WARN "Getting format";
my ($format) = $image->Get('format');
WARN "OK, all gotten";
Code: Select all
[Mon Apr 08 23:02:50 2013] WARN: Reading file
[Mon Apr 08 23:02:50 2013] WARN: Getting format
[Mon Apr 08 23:06:17 2013] WARN: OK, all gotten