By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,623 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

Easy way to tell height and width of an image?

P: n/a
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
:)
Jul 20 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
m
On or around Mon, 7 Jul 2003 14:24:13 +1000, there was a message,
possibly from "Robert Mark Bram"
<re********@REMOVE.THIS.optusnet.com.au>, as follows:
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.
Jul 20 '05 #2

P: n/a
rf

"Robert Mark Bram" <re********@REMOVE.THIS.optusnet.com.au> wrote in message
news:be**********@towncrier.its.monash.edu.au...
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.
Jul 20 '05 #3

P: n/a

"Robert Mark Bram" <re********@REMOVE.THIS.optusnet.com.au> wrote in message
news:be**********@towncrier.its.monash.edu.au...
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...


Jul 20 '05 #4

P: n/a
On Mon, 7 Jul 2003 14:24:13 +1000, "Robert Mark Bram"
<re********@REMOVE.THIS.optusnet.com.au> wrote:

: 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 el***@nospamelsid.co.za 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

Jul 20 '05 #5

P: n/a

"Robert Mark Bram" <re********@REMOVE.THIS.optusnet.com.au> wrote in message
news:be**********@towncrier.its.monash.edu.au...
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".
Jul 20 '05 #6

P: n/a
"Robert Mark Bram" <re********@REMOVE.THIS.optusnet.com.au> wrote in message
news:be**********@towncrier.its.monash.edu.au...
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
Jul 20 '05 #7

P: n/a
Sid Ismail <el***@nospam.com> writes:
On Mon, 7 Jul 2003 14:24:13 +1000, "Robert Mark Bram"
<re********@REMOVE.THIS.optusnet.com.au> wrote: : 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 el***@nospamelsid.co.za 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
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Recommended programs: <URL:http://www.infimum.dk/programs/programs.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #8

P: n/a
Andrew Tang wrote:
"Robert Mark Bram" <re********@REMOVE.THIS.optusnet.com.au> wrote in message
news:be**********@towncrier.its.monash.edu.au.. .
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


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

P: n/a
m
On or around Tue, 08 Jul 2003 21:35:41 -0700, there was a message,
possibly from Anthony Buckland <bu******@direct.ca>, as follows:
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

Jul 20 '05 #10

P: n/a
In article <3F**************@direct.ca>, bu******@direct.ca says...
Andrew Tang wrote:
"Robert Mark Bram" <re********@REMOVE.THIS.optusnet.com.au> wrote in message
news:be**********@towncrier.its.monash.edu.au.. .
Is there an easy way to find out the pixel height and width of an image? I
....
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
....
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 PHP, getImageSize:
http://uk2.php.net/manual/en/function.getimagesize.php

Jul 20 '05 #11

P: n/a
Jacqui or (maybe) Pete wrote:
In article <3F**************@direct.ca>, bu******@direct.ca says...

...

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 PHP, getImageSize:
http://uk2.php.net/manual/en/function.getimagesize.php


Thanks for your reply and "m"s.
Jul 20 '05 #12

P: n/a
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!
Sid Ismail <el***@nospam.com> writes:

On Mon, 7 Jul 2003 14:24:13 +1000, "Robert Mark Bram"
<re********@REMOVE.THIS.optusnet.com.au> wrote:


: 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 el***@nospamelsid.co.za 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


Jul 20 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.