Caution: This version of this document is no longer maintained. For the latest documentation, see


Photon IJS printing client


phs-to-ijs [options] -Xoutfile phsfile

Runs on:



Force anti-aliasing of fonts.
-B size
Specify the size of the printer buffer in bytes. This buffer is used if the specified input file is a FIFO.
-b size
Specify the size of the slice buffer in bytes. The size can be:

The page slice buffer must be large enough to hold at least one line of the output image; that is:

  size ≥ dots_per_inch * page_width(inches) *
Disable the compression of output data.
Delete the input file after processing.
-h height
Specify the initial height of the source image, if it isn't specified by the input file. The default is 480 pixels.
-m model
Select the printer model by specifying a string that matches the MODEL field of the IEEE 1284 Device ID string. For example, -m"Stylus COLOR 777".
-n name
Specify the name of the printer.
Specify media type. The choices are: 1 (plain); 2 (photo); 3 (transparent). The default is 1.
Specify printing type. The choices are: 1 (B/W); 3 (CMY color); 4 (CMYK); 6 (CcMmYK).
Set the resolution; the default is 360×360 DPI.
Scale the image in the X or Y dimension (e.g. -oS0.75,0.6). The scale value may be:
Scale as a multiple of the source image size. For example, use -oS-1,-1 to print the image at exactly its source size. Each pixel of the image corresponds to one printed dot on the page. The size of the printed image varies, depending on the printer resolution (DPI).
Scale as a multiple of the page size. For example, use -oS1,1 to print the image at the full page size. In this example, the image is distorted if its aspect ratio (X:Y) is different from the page's width:height ratio.
Use the maximum size while respecting the aspect ratio of the source image. For example, -oS0,0.5 scales the image to half the height of the page and scales the width of the image proportionately.

If you set only the X scale factor, the Y scale factor is assumed to be the same value. For example, -oS0.5 sets both X and Y to 0.5, meaning the image fills ¼ of the page.

-p start[,end]
Specify the starting (and optionally ending) page number to print. If start is greater than end, the pages are printed in reverse order.
Print the entire file in reverse order.
Be verbose (-VV: be more verbose).
Display information about the version, then exit.
-W n
Specify the warning level for extensions. Choices are:
-w width
The initial width of the source image, if not specified by the input file. The default is 640 pixels.
The output device or file; for example:
-x offset
The initial x offset (default: 0).
-y offset
The initial y offset (default: 0).
The name of a Photon draw-stream (*.phs) file.


The phs-to-ijs utility is an IJS client for printing Photon draw-stream (.phs) output using an IJS server. The configuration file for Epson IJS printers, /etc/printers/epijs.cfg specifies phs-to-ijs as a filter for spooler to use.

If the printer model cannot be determined from the output device, then you need to use the -m option to specify the printer model.

Note: Currently, only certain EPSON printers are supported.


phs-to-ijs -oS1 -or360x720 -X/dev/par1 file.phs

See also:

phs-to-bjc, phs-to-bmp, phs-to-escp2, phs-to-pcl, phs-to-ps, spooler

Printing with spooler in the Printing chapter of the Neutrino User's Guide