shoepolish is a Ruby program, that uses a toolset of OSS utilities to optimize file content for space and bandwidth reduction. You could use this on either a private file collection to save drive space, or on a live website to reduce bandwidth costs.