Easy way to tell height and width of an image?

  • Thread starter Robert Mark Bram
  • Start date
R

Robert Mark Bram

Howdy All!

Is there an easy way to find out the pixel height and width of an image? I
want to write IMG tags in this form:
<img src="../images/BigM_off.gif" width="173" height="169" name="BigM"
alt="Logo Rollover!">
so I am looking for an app or windows thingy that can quickly tell me the
height and width of an image.

Thanks for any advice!

Rob
:)
 
M

m

Howdy All!

Is there an easy way to find out the pixel height and width of an image? I
want to write IMG tags in this form:
<img src="../images/BigM_off.gif" width="173" height="169" name="BigM"
alt="Logo Rollover!">
so I am looking for an app or windows thingy that can quickly tell me the
height and width of an image.

Thanks for any advice!

Rob
:)
Online:
Perl's Image::Size module is often used for this.
PHP has a builtin function to find the sizes.

Offline:
download Irfanview or Gimp.
 
R

rf

Robert Mark Bram said:
Howdy All!

Is there an easy way to find out the pixel height and width of an image? I
want to write IMG tags in this form:
<img src="../images/BigM_off.gif" width="173" height="169" name="BigM"
alt="Logo Rollover!">
so I am looking for an app or windows thingy that can quickly tell me the
height and width of an image.

Windows explorer or Internet explorer: Right click > properties.

Cheers
Richard.
 
S

spaghetti

Robert Mark Bram said:
Howdy All!

Is there an easy way to find out the pixel height and width of an image? I
want to write IMG tags in this form:
<img src="../images/BigM_off.gif" width="173" height="169" name="BigM"
alt="Logo Rollover!">
so I am looking for an app or windows thingy that can quickly tell me the
height and width of an image.

Most text editors with HTML-savvy will automatically insert the width and
height attribute values if you drag the image into the editor.

You could just not use width and height. I mean I know it does help align
things while images are loading, but I think it just makes things harder to
update in the future. Instead of changing a single graphic, you have to
change the attributes in every file that the image is used in...
 
A

Andrew Tang

Robert Mark Bram said:
Howdy All!

Is there an easy way to find out the pixel height and width of an image? I
want to write IMG tags in this form:
<img src="../images/BigM_off.gif" width="173" height="169" name="BigM"
alt="Logo Rollover!">
so I am looking for an app or windows thingy that can quickly tell me the
height and width of an image.

I assume you mean you want to find the height and width
non-programmatically. If you use XP, then it should tell you in the Details
section on the left hand side when you highlight the image file. Thumbnail
view also gives you some info on the selected image. Otherwise you can
install image viewer that comes with windows.

Andrew
 
S

Sid Ismail

On Mon, 7 Jul 2003 14:24:13 +1000, "Robert Mark Bram"

: Howdy All!
:
: Is there an easy way to find out the pixel height and width of an image? I
: want to write IMG tags in this form:
: <img src="../images/BigM_off.gif" width="173" height="169" name="BigM"
: alt="Logo Rollover!">
: so I am looking for an app or windows thingy that can quickly tell me the
: height and width of an image.


Email me at (e-mail address removed) I'll send you a marvellous pgm where a
simple right click on the image from within Windows Explorer gives it!

remove the nospam in email address.

Sid
 
D

Daniel

Robert Mark Bram said:
Howdy All!

Is there an easy way to find out the pixel height and width of an image? I
want to write IMG tags in this form:
<img src="../images/BigM_off.gif" width="173" height="169" name="BigM"
alt="Logo Rollover!">
so I am looking for an app or windows thingy that can quickly tell me the
height and width of an image.

Thanks for any advice!

Rob
:)

Just in case you're using Windows XP, it'll tell you in the status bar in
Windows Explorer the second you click an image. For some reason, the status
bar in Windows XP is disabled by default, so you'll have to go to the View
menu and select "Status Bar".
 
L

Lasse Reichstein Nielsen

: so I am looking for an app or windows thingy that can quickly tell me the
: height and width of an image.
Email me at (e-mail address removed) I'll send you a marvellous pgm where a
simple right click on the image from within Windows Explorer gives it!

I just left click once on the image, and then the tooltop tells me the
dimensions. I don't know if Windows XP does that automatically, or it
is due to having installed IrfanView (but I recommend IrfanView
anyway, so need to hold back!)

No offense, but I would never trust a program mailed to me by I didn't
know (and from those I know, I would still treat it with suspicion).
It is much better for everybody's peace of mind to give a link to a
trusted download site.

IrfanView: <URL:http://www.irfanview.com/>
/L
 
S

Sid Ismail

On 07 Jul 2003 13:01:39 +0200, Lasse Reichstein Nielsen <[email protected]>
wrote:

: No offense, but I would never trust a program mailed to me by I didn't
: know (and from those I know, I would still treat it with suspicion).
: It is much better for everybody's peace of mind to give a link to a
: trusted download site.


I understand. I don't have the url anymore, unfortunately.

Sid
 
A

Anthony Buckland

Andrew said:
I assume you mean you want to find the height and width
non-programmatically. If you use XP, then it should tell you in the Details
section on the left hand side when you highlight the image file. Thumbnail
view also gives you some info on the selected image. Otherwise you can
install image viewer that comes with windows.

Andrew

So, is there a programmatic method; that could, e.g., process some
inconveniently
large numbers of images and generate tags for the whole lot?
 
M

m

So, is there a programmatic method; that could, e.g., process some
inconveniently
large numbers of images and generate tags for the whole lot?

In Perl the File::Find module will iterate through directories and
subdirectories. The Image::Size module can return the sizes of each
image in a form that can be used to generate tags. The whole program
will run just a few lines once you include these modules. File::Find
comes with all standard distributions, and you can install Image::Size
from http://www.cpan.org/.
HTH
m
 
P

Pete

I will have to agree with Lasse, IrfanView is a very handy program,
especially with the plug-ins installed. I have used it for a number of
years, and I have not found another image program that has the functions
and speed that IrfanView has.
Good one Irfan!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top