Web Site Cleanup
Web servers and browsers provide excellent means to provide
access to up date data and interactive applications.
Just copy a file to the server and it's published.
What could be easier?
For starters, without discipline, a web site quickly becomes
disorganized and unmaintainable. Obsolete files clutter the
web server and serve as a distraction from the task at hand.
Worse, on site search engines may provide unintended access
to incorrect, obsolete, or proprietary data. Automated tools
provide the ability to identify unused and orphaned files.
Lists of such files can be examined and the tree can be pruned.
Many graphics programs produce images that take more space than
they need to. In these days of cheap disk space, one is tempted
to say, "Who cares?". But these images take longer to download,
and reduce the effective speed of your web site. Simple open source
tools have been shown to reduce
Photoshop
and
Paint Shop
GIF images by an average of over 30% - without changing a single
pixel. Why? These products do not seem to optimize the color
palette very efficiently. Images that have only 16 distinct
colors can be encoded using a color lookup table with just 16
entries, and each pixel can then be represented with just 4 bits.
The GIF format will then happily encode two pixels per byte, instead
of one byte per pixel. The LZW compression then makes them smaller still.
My work at one company
involved 1,204 images. New images were, on average, 69.6%
of the original size, for a savings of 534,990 bytes. One overnight
script run was required.
Sure, it's time to move to
PNG images.
Tests with many images show that PNG's compression is better,
even after the above optimization.
GIF supports images with up to only 256 colors.
PNG supports 24 bit color images with lossless compression.
Smaller, faster, cheaper, better!
Jpeg is great for 24 bit color photos where a small amount of
compression loss still provides acceptable visual performance.