Customizing the img2afp transform

The img2afp transform can be used to transform color (FS45) images into monochrome bilevel (FS10) images for printing. This transform is valuable for transforming color images so that they print well in black-and-white. You can customize the img2afp transform only by specifying options on the command line. Unlike other transforms shipped with the InfoPrint Manager, this transform is not invoked automatically. Instead, you must specify it at the command line to preprocess the data before printing. For specific information about the syntax and use of this command, see InfoPrint Manager: Reference.

While you can create an img2afp.cfg file, InfoPrint Manager supplies a series of img2afp.cfg configuration files that are based on the printer model. For example, the img2afp.4000-708cfg file on an InfoPrint Manager for AIX server contains these settings:

#img2afp InfoPrint 4000-708 configuration file

a=fs10
respath=.:/usr/lpp/psf/config
thresh=4000-708.ibm106lpi.ta.ps
gcorr=4000-708.ibm106lpi.tf.dt.ps
pagetype=page
v=yes  
r=600

On an InfoPrint Manager for Windows server, the respath value should be set to the path where the img2afp configuration files is located in: install_path\config where install_path is the fully qualified path where InfoPrint Manager for Windows is installed on your system.

In each device-specific configuration file, only the thresh and gcorr values change

img2afp.cfg files observe these basic rules:

    Note:
  1. Any item specified in a configuration file can be overridden on the command line.
  2. Configuration file syntax is attribute = value.
  3. A hash mark (#) indicates a comment to the end of the line.
  4. All attribute names are the same as the command-line names.
  5. For options that do not take values, you must type yes in the configuration file (as shown below).
#sample img2afp configuration file

v = yes  #equivalent to -v flag
a = fs10 #bilevel output

To invoke the transform from the command line, you must specify at least:

  • -a fs10 to indicate bilevel output .
  • -thresh {name} to specify the PostScript level 3 halftone dictionary that you are using.

    When you install some printers with InfoPrint Manager, the product makes PostScript level 3 halftone dictionaries available on your server. For example, an InfoPrint HD1-HD2, HD3-HD4, HD5-HD6, HS1, HS3, MD1-MD2, MS1. PS-1, or PD1-PD2 4100 printer models provides these:

    • C:\Program Files\RICOH\InfoPrint Manager\config\4100-model.ibm71lpi.ta.ps
    • C:\Program Files\RICOH\InfoPrint Manager\config\4100-model.ibm71lpirot90.ta.ps
    • C:\Program Files\RICOH\InfoPrint Manager\config\4100-model.ibm85lpi.ta.ps
    • C:\Program Files\RICOH\InfoPrint Manager\config\4100-model.ibm85lpirot90.ta.ps
    • C:\Program Files\RICOH\InfoPrint Manager\config\4100-model.ibm106lpi.ta.ps
    • C:\Program Files\RICOH\InfoPrint Manager\config\4100-model.ibm106lpirot90.ta.ps
    • C:\Program Files\RICOH\InfoPrint Manager\config\4100-model.ibm141lpi.ta.ps
    • C:\Program Files\RICOH\InfoPrint Manager\config\4100-model.ibm141lpirot90.ta.ps

  • -gcorr filename to specify grayscale mapping tables to halftone the grayscale and color images to bilevel for output.

    When you install particular printers with InfoPrint Manager, you also install these grayscale mapping tables for each type of PostScript level 3 halftone dictionary option.

    For example, an InfoPrint HD3–HD4, HD5–HD6, HS2, HS3, MD1–2 MS1, PD1–PD2, PS1, TD1-2, TD3-4, TD5-6, TS1, TS2, or TS3 4100 printer models provides these:

    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm71lpi.tf.ap.ps for dark halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm71lpi.tf.dt.ps for midtone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm71lpi.tf.lr.ps for standard halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm71lpi.tf.ls.ps for accutone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm71lpi.tf.oc.ps for dark2 halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm71lpiRot90.tf.ap.ps for dark halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm71lpiRot90.tf.dt.ps for midtone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm71lpiRot90.tf.lr.ps for standard halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm71lpiRot90.tf.ls.ps for accutone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm71lpiRot90.tf.oc.ps for dark2 halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm85lpi.tf.ap.ps for dark halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm85lpi.tf.dt.ps for midtone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm85lpi.tf.lr.ps for standard halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm85lpi.tf.ls.ps for accutone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm85lpi.tf.oc.ps for dark2 halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm85lpiRot90.tf.ap.ps for dark halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm85lpiRot90.tf.dt.ps for midtone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm85lpiRot90.tf.lr.ps for standard halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm85lpiRot90.tf.ls.ps for accutone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm85lpiRot90.tf.oc.ps for dark2 halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm106lpi.tf.ap.ps for dark halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm106lpi.tf.dt.ps for midtone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm106lpi.tf.lr.ps for standard halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm106lpi.tf.ls.ps for accutone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm106lpi.tf.oc.ps for dark2 halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm106lpiRot90.tf.ap.ps for dark halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm106lpiRot90.tf.dt.ps for midtone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm106lpiRot90.tf.lr.ps for standard halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm106lpiRot90.tf.ls.ps for accutone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm106lpiRot90.tf.oc.ps for dark2 halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm141lpi.tf.ap.ps for dark halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm141lpi.tf.dt.ps for midtone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm141lpi.tf.lr.ps for standard halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm141lpi.tf.ls.ps for accutone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm141lpi.tf.oc.ps for dark2 halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm141lpiRot90.tf.ap.ps for dark halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm141lpiRot90.tf.dt.ps for midtone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm141lpiRot90.tf.lr.ps for standard halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm141lpiRot90.tf.ls.ps for accutone halftones
    • C:\Program Files\IBM\InfoPrint Manager\config\4100-model.ibm141lpiRot90.tf.oc.ps for dark2 halftones

and -gcorr and -thresh must be used to select an appropriate halftone.