OK, let's break it down:
1. Let's assume you want to know the height and width of a file
2. You clearly need to know what the file type is before you can determine the
height and width (or, for that matter, anything ELSE about the file). Right?
3. OK: maybe you already know the file type.
Look up the file format in one of the links above (or a link you've google'd for) and find where
the height and width is stored in the file header.
4. Maybe you can find a file parser to do this (there are plenty of them out there: including
in "xv" and "The Gimp". Or, for that matter, use "Windows, <Right-click>, Properties").
5. Otherwise, you can use a hex editor and look at the bytes.
The Linux command "od -cx FILENAME | less" is a common way to do this.
The goal, of course, is to match the bytes in the file spec (from the web link) to the corresponding
bytes in the file (which you're examining with "od -cx FILENAME | less").
6. Now let's assume you DON'T know the file type.
That's OK, too.
Many files can be identified by suffix (that's how Windows Explorer works).
Most graphics files have a "magic number" in the first bytes of their header
to identify the file type. The file format links above will give you a clue about
these "magic numbers".
And, if you're on Linux, you can use the "file FILENAME" command. Which is intelligent about
a lot of different file suffixes (like Windows) and about a lot of "magic numbers" (very UNLIKE
'Hope that helps .. PSM