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.
Windows explorer or Internet explorer: Right click > properties.
Cheers
Richard.
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...
: 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
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".
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
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.'
So, is there a programmatic method; that could, e.g., process some
inconveniently
large numbers of images and generate tags for the whole lot?
>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
> >>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
>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.
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