in reply to Re: Question: module to grab file information??
in thread Question: module to grab file information??
Hi, tachyon-II:
You are right, I have used GD::Image to grab size-infomation of about 99% image files. only those with type "PC bitmap data, Windows 3.x format" not available through GD::Image. but I can grab this missing information from running Linux 'file' command anyway. Just want to know if there is a Perl module which can handle this, instead of use code like below(untested):
my $imginfo = qx[ file $myimg ]; my (width, height)= ($imginfo =~ m{(\d+) x (\d+) x \d+});
thanks.
lihao
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Question: module to grab file information??
by tachyon-II (Chaplain) on Apr 30, 2008 at 17:34 UTC |