color postscript

David M. Laur dmlaur at phoenix.Princeton.EDU
Thu Oct 18 05:35:29 AEST 1990


In article <MCCALPIN.90Oct15132432 at pereland.cms.udel.edu> mccalpin at 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 at gauguin.princeton.edu



More information about the Comp.sys.sgi mailing list