9fans archive / 2001 / 11 / 763 / prev next From: okamoto@gra... Subject: [9fans] pic2ps Date: Fri, 30 Nov 2001 13:27:39 +0900 I put a small program to convert uncompressed Plan 9 image(6) to Level 2 Postscript on our usual web site (http://basalt.cias.osakafu-u.ac.jp/plan9/p9index.html). It converts uncompressed color mapped 8 bit, 24/32 bit full color image(6) to one of DeviceRGB, DeviceCMYK, DeviceGray of Level 2 Postscript colorspaces. It reads Plan 9 image from stdin, and writes to stdout, the latter can be overwritten by a named file supplying -f flag. Other options are those of -c <colorspace>, -w <width(cm)>, -h <height(cm)>, -x <x-offset(cm)>, -y <y-offset(cm)>, and -s <papersize>. Only the A4 papersize is now supported. The option -l indicates landscape mode. A typical usage of this program is: cat /dev/wsys/7/window | pic2ps -c CMYK -w 12.5 -h 20 -x 1.0 -y 1.5 | lp -dOki Of course, you can use ghostscript, too. Kenji