ftp.nice.ch/pub/next/graphics/convertors/RGBtoTIFF.0.8.README

This is the README for RGBtoTIFF.0.8.N.b.gnutar.gz [Download] [Browse] [Up]

RAW BITMAPS ---> TIFF
This program combines three separate raw bitmap files, each representing one 8-bit image plane, into a single TIFF file.  You fill in the width and height of the image, the directory in which the separate bitmap files are stored, and the filenames which you want assigned to the red, green, and blue image planes.  Then select the compression type and hit RETURN or click the button.  A save panel will pop up, allowing you to save the resulting compressed TIFF file anywhere you want.  If you hit the "get default bitmapinfo" button, default values are entered, which assume your image planes are called 'bitmap.r', 'bitmap.g', and 'bitmap.b', that they are stored in  '~/Library/Images/bitmaps', and that they are each 512X512.  This program uses the default JPEG compression factor of 10, but you can change it with CompressionLab (see /NextDeveloper/Demos).  Use compression=None if you want to move the image to a Mac.

STRIPPING HEADERS
If you have an image file in some unknown format, but with known header size, and known width and height, you can use the unix utility 'dd' to separate out each image plane into a separate file.   For example, file 'bitmap.dat' has a 512-byte header followed by three 512X512 8-bit image planes.  The following makes separate raw images:

dd if=bitmap.dat of=bitmap.r skip=1 count=512
dd if=bitmap.dat of=bitmap.g skip=513 count=512
dd if=bitmap.dat of=bitmap.b skip=1025 count=512

Do a 'man dd' to see how this works.  The above commands use the default block size of 512, but you can change that.  Once you have the separate files, use RGBtoTIFF to put them into a TIFF file.


KNOWN FORMATS
Of course if your other image format is GIF, pbm, or any of a number of other ones, you can use ImageViewer by Lovstrand@EuroPARC.Xerox.COM to load it in and save to TIFF format.  Only use RGBtoTIFF as a last resort, if you don't know the header structure. 

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.