Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Easy way to tell height and width of an image?

2 views
Skip to first unread message

Robert Mark Bram

unread,
Jul 7, 2003, 12:24:13 AM7/7/03
to
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

unread,
Jul 7, 2003, 12:52:47 AM7/7/03
to
On or around Mon, 7 Jul 2003 14:24:13 +1000, there was a message,
possibly from "Robert Mark Bram"
<relax...@REMOVE.THIS.optusnet.com.au>, as follows:

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.


rf

unread,
Jul 7, 2003, 12:55:04 AM7/7/03
to

"Robert Mark Bram" <relax...@REMOVE.THIS.optusnet.com.au> wrote in message
news:beaslb$m3u$1...@towncrier.its.monash.edu.au...

Windows explorer or Internet explorer: Right click > properties.

Cheers
Richard.


spaghetti

unread,
Jul 7, 2003, 2:13:11 AM7/7/03
to

"Robert Mark Bram" <relax...@REMOVE.THIS.optusnet.com.au> wrote in message
news:beaslb$m3u$1...@towncrier.its.monash.edu.au...

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...


Sid Ismail

unread,
Jul 7, 2003, 6:32:32 AM7/7/03
to
On Mon, 7 Jul 2003 14:24:13 +1000, "Robert Mark Bram"
<relax...@REMOVE.THIS.optusnet.com.au> wrote:

: Howdy All!


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

Daniel

unread,
Jul 7, 2003, 6:39:59 AM7/7/03
to

"Robert Mark Bram" <relax...@REMOVE.THIS.optusnet.com.au> wrote in message
news:beaslb$m3u$1...@towncrier.its.monash.edu.au...

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".


Andrew Tang

unread,
Jul 7, 2003, 5:48:37 AM7/7/03
to
"Robert Mark Bram" <relax...@REMOVE.THIS.optusnet.com.au> wrote in message
news:beaslb$m3u$1...@towncrier.its.monash.edu.au...

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


Lasse Reichstein Nielsen

unread,
Jul 7, 2003, 7:01:39 AM7/7/03
to
Sid Ismail <el...@nospam.com> writes:

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 - l...@hotpop.com
Recommended programs: <URL:http://www.infimum.dk/programs/programs.html>
'Faith without judgement merely degrades the spirit divine.'

Jacqui or Pete

unread,
Jul 7, 2003, 7:23:51 AM7/7/03
to
In article <3f094dff$0$32480$edfa...@dread16.news.tele.dk>, sorry-no-
em...@i-get-virus-and-spam.com says...

>
> "Robert Mark Bram" <relax...@REMOVE.THIS.optusnet.com.au> wrote in message
> news:beaslb$m3u$1...@towncrier.its.monash.edu.au...
> > Howdy All!
> >
> > Is there an easy way to find out the pixel height and width of an image? I
...

> 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.
...
I'd never noticed that! Excellent tip.

Steven Dilley

unread,
Jul 7, 2003, 5:02:01 PM7/7/03
to
"rf" <making...@the.time> wrote in message
news:I27Oa.390$Xx6....@news-server.bigpond.net.au...

>
> Windows explorer or Internet explorer: Right click > properties.
>
> Cheers
> Richard.
>
Open IE with any page. Drag the png, gif, or jpg file to the browser.

Anthony Buckland

unread,
Jul 9, 2003, 12:35:41 AM7/9/03
to
Andrew Tang wrote:

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

unread,
Jul 9, 2003, 9:31:09 AM7/9/03
to
On or around Tue, 08 Jul 2003 21:35:41 -0700, there was a message,
possibly from Anthony Buckland <buck...@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

Jacqui or Pete

unread,
Jul 10, 2003, 2:39:37 AM7/10/03
to
In article <3F0B9B9D...@direct.ca>, buck...@direct.ca says...

> Andrew Tang wrote:
> >"Robert Mark Bram" <relax...@REMOVE.THIS.optusnet.com.au> wrote in message
> >news:beaslb$m3u$1...@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

Anthony Buckland

unread,
Jul 10, 2003, 11:59:10 AM7/10/03
to
Jacqui or (maybe) Pete wrote:

>In article <3F0B9B9D...@direct.ca>, buck...@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.


Chris Doran

unread,
Jul 10, 2003, 8:26:44 PM7/10/03
to
"Robert Mark Bram" <relax...@REMOVE.THIS.optusnet.com.au> wrote in message news:<beaslb$m3u$1...@towncrier.its.monash.edu.au>...

I've not used it myself, but PPWizard, free from
http://www.labyrinth.net.au/~dbareis/ppwizard.htm claims to do what
you want, and much much more.

Chris

Pete

unread,
Jul 15, 2003, 12:31:11 PM7/15/03
to
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!
0 new messages