Skip Menu |

This queue is for tickets about the Image-Size CPAN distribution.

Report information
The Basics
Id: 54264
Status: new
Priority: 0/
Queue: Image-Size

People
Owner: Nobody in particular
Requestors: singularita [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Image::Size is much slower than Image::Info
Date: Wed, 3 Feb 2010 17:06:46 +0100
To: bug-Image-Size [...] rt.cpan.org
From: MP <singularita [...] gmail.com>
I tried to replace Image:Info which fails on some input images with Image::Size in my program, however I've noticed that it decreased the speed of my script several times, from few seconds to few minutes on same set of images (the input set of images was mix of various images, mostly JPEG's with few PNG's and GIF's in small sizes (few hundred generated thumbnails 150x150 px)). Basically, I just replaced: use Image::Info qw(image_info dim); ... $info=image_info($imagename); ($w,$h) = dim($info); ... with: use Image::Size; ... ($w,$h)=imgsize($imagename); ... and the script was then much slower I think the speed need to be improved. I am using Image::Size from debian package libimage-size-perl, version 3.220-1 $ perl -v This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi $ uname -a Linux emp-nv 2.6.32-trunk-amd64 #1 SMP Sun Jan 10 22:40:40 UTC 2010 x86_64 GNU/Linux