Why use it?It makes your html faster to display and more user friendly Simply put, adding width and height tags to your <IMG SRC=""> elements tells the browser how to layout the entire page before it receives any data on the included images. In theory, it allows all of the text in a page to be displayed before any of the requests for the images have been answered by the server. I think that use of the tags makes for a markedly better web experience for users visiting graphics-rich sites, especially if browsing is being done through a slow connection (i.e. modem, or on servers that tend to be particularly busy). It also gives web providers the freedom to use more graphics than has been reasonable before the advent of browsers that support the directive--- provided, of course, that they provide enough text up front to keep users occupied while graphics are loading. width & height have now been added to HTML3 specifications so hopefully more & more browsers will be supporting them. Because of the HTML standard even browsers which do not support it will not complain they will just carry on as though the tags were not there. WWWimagesize supports GIF, JPEG, XBM & PNG image formats. If you have short PERL routines to find the sizes of other formats which are used in html pages then please let me know and WWWimagesize can support that too. O.K. O.K. I want this groovy programWell first you'll have to download the program, but be warned... THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT WARRANTY OF ANY KIND. USE AT YOUR OWN RISK You know you want to click here to Download WWWisThen you'll have the read the following pages to find out all about it If you have any problems at all. please check out the known bugs page and if it's not there then mail me stating what the problem is and some example html which causes the error Once you've realised how groovy it is you might want to be informed of new versions and bug fixes etc. so all you have to do is register And I'll let you know all about it WWWis was written by Alex, wtwf.com. Suggestions and bug fixes should be directed at me (see http://wtwf.com/ for contact info) Other stuffIf you use Imagemaps and want to convert your old server side image maps to client side image maps you should check out map2html. Some of the code from wwwis has been used in other free scripts - check out HTML Thumbnail by Benjamin "Snowhare" Franz Code from wwwis has also been used to create the Image::Size perl module (which I have nothing to do with so don't email me about it). Check out Phil Harvey's cool icat which creates a nice frames based image catalog using some wwwis code. ReciprocalsCopyingThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |