[comp.sys.sgi] color postscript

mccalpin@perelandra.cms.udel.edu (John D. McCalpin) (10/16/90)

Does anyone have a utility to convert from IRIS image format to color
postscript?

Please forgive me if such a thing exists in 3.3 --- I am tired of
putting my work on hold waiting for it to someday appear....
--
John D. McCalpin			mccalpin@perelandra.cms.udel.edu
Assistant Professor			mccalpin@vax1.udel.edu
College of Marine Studies, U. Del.	J.MCCALPIN/OMNET

dmlaur@phoenix.Princeton.EDU (David M. Laur) (10/18/90)

In article <MCCALPIN.90Oct15132432@pereland.cms.udel.edu> mccalpin@perelandra.cms.udel.edu (John D. McCalpin) writes:
>Does anyone have a utility to convert from IRIS image format to color
>postscript?

ok, ok ...

I've built a standalone version (3.3.1 executable) of an internal
tool which converts a variety of image formats to PostScript.
You can ftp it from:

   gauguin.Princeton.edu    (128.112.224.1)

   login as "ftp" or "anonymous"
   use anything as a password
   set binary mode

   get pub/pix/px2ps


Here's the man-page, such as it is:

------

usage: px2ps [options] imgfile

 Convert image to an Adobe Encapsulated PostScript(tm) page description.

 Currently handled input formats:
   TIFF,SGI,Sun,ALS,HDF,GWH (at Princeton: GIF,Xwd,TGA, and .Z files)

   Note: Uses Level II 'colorimage' operator for RGB images.
         Even grayscale ('image' operator) EPS files are huge!
         Not all color PostScript printers handle images correctly.

 Options:
   -r         ... rotate, i.e. landscape orientation
   -g         ... force grayscale output, even for RGB data
   -C         ... *don't* center, i.e. no offset from page origin
   -N         ... invert (negate) intensity values
   -v         ... be verbose about some conversion facts
   -s inches  ... scale image rows to this length, (default = fill page)
                  columns will be scaled proportionally
                  default: fill 8.5x11 inch page
   -o file    ... write PostScript output to file (can also redirect stdout)
   -P "cmd"   ... send PostScript output thru this command
   -# copies  ... embed a copy count in the PostScript output
   -G gamval  ... gamma warp image, (0.0 < darker < 1.0 < brighter < 4.0)
   -4         ... reduce 8-bit samples to 4 (smaller files! for RGB too)
   -b cutoff  ... force one-bit per pixel, bit-on = (data > cutoff)

example:   px2ps /local/images/elvis | lpr -h -Ppscolor

------

David Laur
Princeton ICGL                      "I am resplendent in divergence" - D.Byrne
dmlaur@gauguin.princeton.edu