473,574 Members | 2,347 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Easy way to tell height and width of an image?

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
12 7852
m
On or around Mon, 7 Jul 2003 14:24:13 +1000, there was a message,
possibly from "Robert Mark Bram"
<re********@REM OVE.THIS.optusn et.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
rf

"Robert Mark Bram" <re********@REM OVE.THIS.optusn et.com.au> wrote in message
news:be******** **@towncrier.it s.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

"Robert Mark Bram" <re********@REM OVE.THIS.optusn et.com.au> wrote in message
news:be******** **@towncrier.it s.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
On Mon, 7 Jul 2003 14:24:13 +1000, "Robert Mark Bram"
<re********@REM OVE.THIS.optusn et.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***@nospamels id.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

"Robert Mark Bram" <re********@REM OVE.THIS.optusn et.com.au> wrote in message
news:be******** **@towncrier.it s.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
"Robert Mark Bram" <re********@REM OVE.THIS.optusn et.com.au> wrote in message
news:be******** **@towncrier.it s.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-programmaticall y. 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
Sid Ismail <el***@nospam.c om> writes:
On Mon, 7 Jul 2003 14:24:13 +1000, "Robert Mark Bram"
<re********@REM OVE.THIS.optusn et.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***@nospamels id.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.c om/>
/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
Andrew Tang wrote:
"Robert Mark Bram" <re********@REM OVE.THIS.optusn et.com.au> wrote in message
news:be******* ***@towncrier.i ts.monash.edu.a u...
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-programmaticall y. 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
m
On or around Tue, 08 Jul 2003 21:35:41 -0700, there was a message,
possibly from Anthony Buckland <bu******@direc t.ca>, as follows:
So, is there a programmatic method; that could, e.g., process some
inconvenient ly
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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
7837
by: John | last post by:
I have a table with two rows. On the first row is a text box and in the second row is an image. I have set the table cellpadding to 0 and cellspacing to 0. The table is leaving extra spaces in the rows on the top and bottom of the picture and image. I need to make the height of the rows to be the same as the textbox and image. How do I do...
3
9235
by: Oliver Bryant | last post by:
I just finished developing a javascipt component allowing floating captions to appear over HTML elements. If anyone wants to check it out you can see specs and download it from http://boxover.swazz.org. There is a demo there as well.
2
6757
by: Robson Carvalho Machado | last post by:
Dear friends, I'm dynamically creating a Hyperlink with spacer.gif as ImageURL that is an 1px transparent image only to determine link position, but as I create this link dynamically I could not set image width. This problem makes my link clickable only on its borders. When viewing HTML source I could see that spacer.gif has no width and...
1
3884
by: comp.lang.php | last post by:
Sorry folks, I'm on a roll!!! I need to calculate the height or width of an image if you change either the width or height and don't change BOTH of them at the same time, this is to "vector" the image. Here is the class method, it obviously doesn't work: /**
4
1899
by: _Raven | last post by:
Okay, I am playing with submitting forms with Ajax. I am trying to adapt this script to my forms: http://www.captain.at/howto-ajax-form-post-get.php I have included my code at the bottom of this post. Basically, this will work correctly if I remove all non-form related tags from the form =eg span, div, but I want to format the form all...
8
2431
by: Kentor | last post by:
Hello, I have users that submit images to my website. By default I choose to make the width bigger than the height because usually pictures are taken horizontally... But in some cases people take pictures vertically so what I'm getting at is... can I know whether an image was taken horizontally or vertically so I can make the proper width/...
2
13410
by: Atul | last post by:
I am unable to find image height and width in mozilla firefox. My code is working in IE but not in Mozilla. How can i find image width and height in mozilla? function check(sel) { if(sel != "") { document.getElementById('newImg').src = sel; document.getElementById('newImgDiv').style.visibility = "visible"; } }
1
4184
epots9
by: epots9 | last post by:
I have a image inside of a div <div id="image"> <div id="loader"> <img id="loaderImage" src="assets/loader.gif" alt="loading..." /> </div> <div id="loaded"> <img id="picture" src="" alt="" /><!--image in question--> <div id="closeAll" onclick="closeAll();">X</div> </div>
6
1878
by: Christopera | last post by:
I built a this sites http://www.ourzeal.com/walko/index.html . If you look closely at the far right column it is about 1 px higher than the other two. The source does validate. I can not however get this column fo level out. Any help would be much appreciated. Right click to view source and the CSS looks like this: body {...
0
7828
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8089
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8127
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5638
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5329
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3765
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2257
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1362
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1092
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.