OpooSoft PS To IMAGE Command Line: Best Practices and Examples

OpooSoft PS To IMAGE Command Line Parameters Explained

OpooSoft PS To IMAGE is a command-line utility that converts PostScript (PS) and EPS files into raster image formats (JPEG, PNG, BMP, TIFF, etc.). Below is a concise explanation of commonly used command-line parameters and typical usage patterns.

Basic usage

ps2img.exe [options] input.ps output.ext

Common parameters

  • -format, -f
    Purpose: Set output image format (e.g., jpeg, png, bmp, tiff).
    Example: -f png

  • -quality
    Purpose: JPEG output quality (0–100).
    Example: -quality 90

  • -dpi[]
    Purpose: Set horizontal (and optional vertical) resolution in dots per inch. Higher DPI → larger, sharper image.
    Example: -dpi 300 or -dpi 300 300

  • -width / -height
    Purpose: Specify exact output image dimensions. If only one dimension is given, the other is scaled to preserve aspect ratio.
    Example: -width 1024

  • -scale
    Purpose: Scale page contents by a multiplier (e.g., 2 for 200%).
    Example: -scale 1.5

  • -rotate
    Purpose: Rotate the page before rendering (degrees; typical values 0, 90, 180, 270).
    Example: -rotate 90

  • -bkgcolor
    Purpose: Set background color for formats that don’t support transparency (e.g., JPEG). Accepts hex (e.g., #FFFFFF) or color names.
    Example: -bkgcolor #FFFFFF

  • -transparent
    Purpose: Preserve transparency when output format supports it (e.g., PNG). Often used with -bkgcolor ignored.
    Example: -transparent

  • -page
    Purpose: Select specific page number when input is multi-page PS/PDF.
    Example: -page 2

  • -pages –
    Purpose: Convert a range of pages.
    Example: -pages 1-3

  • -antialias
    Purpose: Enable or disable anti-aliasing for smoother output.
    Example: -antialias on

  • -cropbox / -trim
    Purpose: Use the document CropBox/TrimBox or trim white margins from the result.
    Example: -cropbox

  • -rotate-autoorient
    Purpose: Auto-rotate pages based on orientation metadata (useful for scanned inputs).

  • -multi-thread
    Purpose: Use n threads for faster batch processing (if supported).
    Example: -multi-thread 4

  • -verbose
    Purpose: Print detailed processing information to the console.

  • -help / -h
    Purpose: Show usage and all available options.

Batch conversion tips

  1. Use wildcards or scripting to loop through files (e.g., in PowerShell, Bash).
  2. For consistent quality, set both -dpi and -quality for JPEGs.
  3. Use -transparent with PNG to maintain vector transparency.
  4. Limit threads if CPU contention occurs.

Examples

  • Convert to

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *