This is the README for tiff-utils.s.tar.gz [Download] [Browse] [Up]
tiff-utils - Version 1.0, Michael Glenn, March 3, 1993. Two tiff related utilities. Many applications are distributed with uncompressed .tiff files, and redundant .tiff files (especially with NeXTStep Help), and these two utilities can often significantly reduce the applications size, without affecting its operation. squeeze: Will take a list of tiff files and compress them with LZW compression if they were uncompressed. tifflink: Takes a list of tiff files, and makes hard links to replace duplicate tiff files. Squeeze requires NS 3.0. The included binaries (now required for submissions to sonata) probably require 3.0. Installation: Type "make" to compile the two utilities. "make install" will copy them to /usr/local/bin as well. Usage and notes: squeeze file1 [file2 file3 ...] all Uses an NXBitmapImageRep object to check the compression type, and then shells out to "tiffutil" to do the actual compression. It requires NS 3.0. It used to work with 2.0, but I made it faster. It will skip .tiff files that are already compressed in any way. tifflink file1 [file2 file3 ...] all Compares files sizes and inode numbers first, then shells out to "diff" to make sure the files match before making a hard link. Soft links are skipped. Should work under 2.1. (does it?) The files specified can be directories. "tifflink all" is the same as "tifflink ." for example. Soft linked directories are not followed. Bugs and future enhancements: It would probably be much faster to use the NXBitmapImageRep object to TIFFWrite with LZW, rather than shelling out to "tiffutil". It would probably be better to write my own "diff" rather than shelling out to do this. The output is a little noisy. Perhaps a "verbose" -v option to turn this on. Also, might be nice to display some statistics when completed (how many tiff files, how many hard links were made, how much space was saved, etc.). Squeeze could look at all the .tiff files to check for hard links before squeezing files. As is, if there was a hard link to the file, then that link gets destroyed. Always run squeeze before tifflink. Shall I combine them into a single utility program? It would make sense. Send any bugs ,suggestions, or comments to fermat@fermat.dartmouth.edu (NeXTMail welcome) Michael Glenn
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.