image/jpeg; xv %s -24 -visual truecolor image/jpg; xv %s -24 -visual truecolor image/tiff; xv %s -24 -visual truecolor image/rgb; xv %s -24 -visual truecolor image/gif; xv %s -24 -visual truecolorIf you don't have a ~/.mailcap file, create one with this stuff in it.
image/jpeg; iv %s -f image/jpg; iv %s -f image/tiff; iv %s -f image/rgb; iv %s -f image/gif; iv %s -fIf you don't have a ~/.mailcap file, create one with this stuff in it.
% gamcalLook at the vertical grey bands of color going from full brightness on the left to pure black on the right. Make sure you can see the steps in brightness from each bar to the next. Adjust the monitor brightness so you can just barely see the transition from complete black on the far right, to the bar just to the left, which has a brightness of 1/255.
Now, to enhance an input input run "enhance" like this:
% enhance in.rgb out.rgbThe program lets you select an image processing operation from a list, and will display a set of 9 images for you to choose from. Each time you make a choice, the process is applied to a small copy of your input image. When you've got the small image looking the way you want, press the "Write Output" button and the output file will be created.
% cjpeg -q 30 < pic.rgb > pic.jpgThe number 30 specifies a quality factor. This number can be any value between 0 and 100. The bigger the quality factor is, the higher the quality of the resulting JPEG image. Remember though, that higher quality images will consume more bytes, and therefore take longer to transfer.
If custom horizontal rules are used they probably should be made exactly 564 (476) pixels wide. Its also probably good to make sure that no images are wider than 564 (476) pixels. What a jooooke.
The script "epstogif" uses a resolution of 66.3 pixels/inch for rendering EPS files. This value is used so that a picture that is 8.5 inches wide will end up exactly 564 pixels across. If you want to change this scale factor, you can make a new script based on the epstogif script in /usr/sbin/epstogif.
When an EPS file is converted, it is made into a GIF image with 64 or fewer colors. If you would like it to use fewer colors for the final GIF image, you make a new version of epstogif with different options for "togif".
First a program called "fromeps" is used to convert the EPS file into an RGB IRIS image. To use this:
% fromeps graphic.eps out.rgba -a -f -p 96The -a option is to output an rgba file instead of rgb.
You can use the program "unframe" to remove any extra white space around the image like this:
% unframe out.rgba trimmed.rgbaNow the file trimmed.rgba will be an IRIS image file with an alpha channel that sez what parts are transparent. The next step is to make all the transparent parts be a perfect grey of 128,128,128, so "togif" will know which parts to make transparent:
% trans128 trimmed.rgba trimmed.rgbThe last step is to run "togif" to actually convert the RGB image into a GIF file.
% togif trimmed.rgb graphic.gif -x 128 128 128 -n 64The -x option specifies an RGB color in the input image. that indicates transparent pixels.
In this case togif will generate an optimal palette of colors, and dither the input RGB image to make a GIF image.
% togif in.rgb out.gif -m pal.map -x 128 128 128 -n 64The pal.map file can be generated from a group of RGB image files with the "mkpal" program:
% mkpal pal.map 128 in1.rgb in2.rgb in3.rgbThis will make a palette of 128 colors tuned to display all these input RGB images.
If you have navigational controls or other images that are used on many different pages of your document, you can make a separate color map for these images, and use the same GIF images on each page. Just make sure that the total number of colors needed for all the color maps on a given page doesn't exceed 240 colors or so.
To make a little horizontal spacer do:
% gifspace xspace100.gif 100 1To make a vertical space do:
% gifspace yspace30.gif 1 30This can be used to center an image in the default page. These spacing .gif files are teeny - a 100 pixel wide image is 49 bytes.
This will work until the next generation of HTML becomes widely available.
% gifstat this.gif that.gif theother.gif
NOTE: To run fromps, fromeps and epstogif you will need Impressario software from SGI. To order a copy, call 1-800-7441, then install
impr_rip impr_fonts impr_server impr_base print.sw dps_eoe.sw.dpsfontNOTE: To avoid confusion you should probably make sure you don't have old copies of these programs in /usr/local/bin or elsewhere.
cjpeg conimg cutimg enhance epstogif fromeps fromgif fromps gifspace gifstat iflip ipaste iv izoom mkpal scope subimg togif trans128 unframe