Name | Last modified | Size | |
---|---|---|---|
Parent Directory | - | ||
ALL.tar.Z | 1996-12-16 23:29 | 812K | |
enhance.Z | 1996-09-04 14:41 | 175K | |
iv.Z | 1996-09-04 14:41 | 149K | |
togif.Z | 1996-09-04 14:41 | 97K | |
fromeps.Z | 1996-09-04 14:41 | 69K | |
cjpeg.Z | 1996-12-16 23:26 | 51K | |
ipaste.Z | 1996-09-04 14:41 | 45K | |
scope.Z | 1996-09-04 14:41 | 38K | |
izoom.Z | 1996-09-04 14:41 | 33K | |
fromps.Z | 1996-09-04 14:41 | 29K | |
mkpal.Z | 1996-09-04 14:41 | 26K | |
iflip.Z | 1996-09-04 14:41 | 21K | |
conimg.Z | 1996-09-04 14:41 | 20K | |
fromgif.Z | 1996-09-04 14:41 | 17K | |
cutimg.Z | 1996-09-04 14:41 | 15K | |
gifinter.Z | 1996-09-04 14:41 | 12K | |
unframe.Z | 1996-09-04 14:41 | 10K | |
subimg.Z | 1996-09-04 14:41 | 10K | |
trans128.Z | 1996-09-04 14:41 | 10K | |
gifstat.Z | 1996-09-04 14:41 | 9.0K | |
README.html | 1996-09-04 15:44 | 8.9K | |
epstogif.Z | 1995-03-21 23:39 | 187 | |
tojpg.Z | 1996-09-19 23:28 | 162 | |
gifspace.Z | 1994-10-11 10:27 | 145 |
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.
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