Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Determine Image Size without Modules

by pfaut (Priest)
on Feb 20, 2003 at 01:50 UTC ( [id://236938]=note: print w/replies, xml ) Need Help??


in reply to Determine Image Size without Modules

A Google search for graphic image file format turned up a bunch of sites including http://www.dcs.ed.ac.uk/home/mxr/gfx/ which seems fairly comprehensive. If you can decipher the file header formats from these documents you should be able to read it in with perl using sysread (make sure you use binmode especially if you are not on *nix). You can then read the header using unpack (see Pack/Unpack Tutorial (aka How the System Stores Data) for some assistance there).

--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://236938]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-03-28 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found