Problem
I want to print JPEG pictures to a printer from the
command line. Utilities like Netscape or Mozilla can
already print JPEG pictures, but I want to do this from
the command line. Solution
The jpegtopnm command used in conjunction with the pnmtops command can convert JPEG picture files into postscript files that can be sent to a postscript printer.
This is what you will need to install:
OSS646B - the Execution Environment Supplement. Download all VOL images for oss646b from:
https://ftp.scoexpert.com/openserver5/oss646b/The OpenServer Supplemental Graphics, Web and X11 Libraries supplement. Download all VOL images for this supplement, or gwxlibs, from here:
https://ftp.scoexpert.com/openserver5/opensrc/gwxlibs-1.3.2AgUse the scoadmin software manager, or custom, to install these supplements.
After these are installed, the following command converts the JPEG picture into a postscript file that can be printed to a postscript printer:
# jpegtopnm pict.jpg | pnmtops > newfile.ps
# lp -d printer -opostscript newfile.psThis printer has to be a postscript printer.