What is it?

some would say it is an exercise in options...

WWWis is a perl application which will read in an HTML file and insert height=### width=### directives into the inlined images used in the file. It also does a whole lot more to boot.

It is derived from a script called gifsize and was called WWWimagesize until now, but I got tired of typing it and almost always spelled it wrong so it's called wwwis now (in true UN1X fashion). If only when I thought of renaming it I called it webis it would have been a lot better. I think 4 name changes is a little much though, Eh?

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 program

Well first you'll have to download the program, but be warned...


You know you want to click here to Download WWWis

Then 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.
Original concept and coding by Andrew Tongwerdna@ugcs.caltech.edu

Suggestions and bug fixes should be directed at me (see http://wtwf.com/ for contact info)

Other stuff

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



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