From a practical point of view, it's worth finding out which of the two image formats supported by the distributed Mosaic viewers -- JPEG or GIF -- gives the best quality for the lowest storage space and transmission time.
The images were all prepared in Adobe Photoshop. The quality levels on the JPEG images refer to the picture quality settings of a slider bar for picture quality versus compression; the two are, non-mathematically speaking, inversely proportional. From Photoshop, only 24-bit RGB color images are saveable as JPEGs, and only 8-bit color images are saveable as GIFs. The black and white image was an 8- bit greyscale. The viewer is JPEGview, running on a Macintosh Centris 650 with 16 Mb RAM and standard 8-bit color graphics.
The images are linked below. You'll need a decent amount of screen real-estate to do a subjective comparison yourself, but you can still do 1-on-1 comparisons with a 14" screen
GIF: 33,476 bytes
JPEG-fair: 11,425 bytes: 34% of GIF's size
JPEG-good: 27,307 bytes: 81% of GIF's size
JPEG-better: 37,303 bytes: 114% of GIF's size
JPEG-excellent: 56,022 bytes: 160% of GIF's size
Color
Kinaree statue at the Grand Palace, Bangkok. Photo: Michael Buckley
PICT (uncompressed 24-bit color scan): 296,820 bytes
GIF (dithered 8-bit color): 104,098 bytes
JPEG-fair: 15% of GIF's size
JPEG-good: 42,624 bytes: 41% of GIF's size
JPEG-better: 86,064 bytes: 82% of GIF's size
JPEG-excellent: 188,428 bytes: 181% of GIF's size; 63% of PICT's size.
The disk space JPEG-better saves over GIF is about 20%. This is not inconsiderable with a large archive; if you have an 80 Mb hard drive, 80 Mb of JPEG-better images beats the heck out of 100 Mb of the equivalent GIF images. Nonetheless, JPEG-better images do not take 20% less time to load than the equivalent GIFs. Although 20% less data comes across the network, the viewer takes a comparatively longer time -- a few extra seconds -- to reduce the 24-bit color JPEG image to 8-bit color than it does to display a GIF image that's 8-bit color to begin with. In other words, the viewer has to dynamically reduce the colors each time that the JPEG image is loaded, whereas the reduction is done once for GIFs, when the image is first prepared. Naturally, this delay will vary with the speed of the workstation and the efficiency of the viewer software; you can confirm this by loading the images yourself. Moreover, if you happen to have 24-bit color, all bets are off. Nonetheless, for the average Mosaic viewing situation -- and I consider mine fairly average -- the time delay for a JPEG-better image to display is greater than that for a GIF.
It's worth noting that JPEG-excellent takes up only 63% of the size of the uncompressed 24-bit PICT file; its quality is markedly superior to the GIF. If there's a probability that plenty of people will view it with 24-bit color workstations, JPEG-excellent provides a good space-quality tradeoff.
J.K. Cohen/jkcohen@uci.edu/February 26, 1994