Image Files in Web Publishing

By David D. McFarland

The present document covers selected aspects of graphics for Web publishing which have arisen in my own work. It deals with a variety of topics, from special twists arising in publishing Mathematical Sociology and other technical materials on the Web, to pointers for students who are Web publishing beginners. However, it is not intended to be, and most certainly is not, comprehensive; and in the topics it does touch upon, it skims over many subtle aspects that have not become especially salient in my work. Readers wishing further information are referred in particular to books by Kay and Levine, and by Weinman.

In-line versus Optional Images on Web Pages.

Web browsers have two built-in capabilities for displaying images: In both cases, the image itself is in a file separate from the HTML file that links to it.

Vector vs. Image Graphics

Computer Graphics has two major forms:

The remainder of this document is about image graphics only.

Image File Formats

There are literally dozens of different formats for image data files, but most creators of Web pages can safely ignore all but a couple of them. (See the book by Kay and Levine for information about any of the others, if needed, and for further details about these.) Which format(s) to use? Here are some suggestions.

Graphics Image Software

What software is needed for creation and editing of graphics images, or converting among different file formats?

Graphics arts professionals, who earn their livelihoods this way, spend several hundred dollars for Adobe Photoshop, which I occasionally use in computer labs, but do not have on my own computers at either office or home.

Paintshop Pro seems to be well-regarded by its users who post to usenet groups. I have not used it myself, but do believe it is the leader at the budget end of the market.

I advise students to use whatever software was bundled with the computers they have access to, and whatever is on the machines in the computer labs, to get a better idea of what features they already have available, and what features they want but lack, before making any major investment.

I'm not sure choice of image editing software makes much difference for someone who, like me, works mainly in text, and only occasionally gets very involved in image data. The basic things, at least, can be done in various programs, and without spending much money on software.

One program I actually use at home is PhotoFinish 3.0, a Windows-based sibling of PC-Paintbrush, created by the now defunct ZSoft. It came as a freebie that was bundled with a hand scanner I bought a few years ago, and runs on MS-Windows 3.11. It lacks the ability to deal with very large files, and lacks some of the fancier features, such as ability to create transparent or animated GIFs. But it is able to acquire an image from a scanner or load it from a file in any of several formats; crop it, touch it up; and save it in GIF format.

MS-Windows itself includes a Paint accessory, but that has a fatal flaw for our purposes: it is unable to save in either GIF or JPEG format.

What about software for flattening color depth, or for format conversion?

Often it is unnecessary. Graphics editing software commonly includes those capabilities. Color depth may be a menu item. And a file conversion may involve the steps: load it, then "Save As..." a different format. Or it might actually be necessary to read the manual.

There is also some software useful for graphics format conversion, but incapable of full-fledged image editing. Lview is primarily for viewing, rather than editing, but it handles BMP and TGA formats, as well as JPG and GIF, and can open a file in one and save as a different format.

Also, in MS-Windows 3.11, the operating system itself can help get things from odd formats into GIF. Anything that can be displayed on the screen can be captured to the Clipboard using the PrtSc key. Then it can be pasted into Paintshop Pro or whatever, and saved as GIF.

Reducing File Size and Download Time

One joke, not without justification, alleges that "WWW" stands for "World Wide Wait". And the most commonly awaited event is completion of a graphics image download.

Graphics image files are relatively large, at least compared to HTML files and other text files. A vga screen filled with text takes roughly 2 kilobytes, in sharp contrast to the roughly 900 kilobytes taken by the same screen filled with a true color image. (The calculations are: 80 columns x 25 rows x 1 byte, versus 640 columns x 480 rows x 3 bytes, without compression in both cases.)

A message posted on a Web site will not achieve its purpose if it takes so long to download that the members of its intended audience give up, and point their browsers elsewhere. Here are several suggestions for ways to reduce image file size, and the corresponding download time.


References

Kay, David C., and John R. Levine. 1994. Graphics File Formats. Second edition. Blue Ridge Summit, PA: Windcrest/McGraw-Hill.

Raggett, Dave, Jenny Lam, and Ian Alexander. 1996. HTML 3: Electronic Publishing on the World Wide Web. Reading: Addison- Wesley.

Weinman, Lynda. 1997. Designing Web Graphics.2 (sic). Second edition. Indianapolis: New Riders (Macmillan Computer Publishing).