pbmtoepsi

converts PBM bitmaps to Encapsulated PostScript Interchange format

TLDR

Convert PBM to EPSI format
$ pbmtoepsi [input.pbm] > [output.epsi]
Output only bounding box comments (no image data)
$ pbmtoepsi -bbonly [input.pbm] > [output.epsi]
Specify output resolution in dots per inch
$ pbmtoepsi -dpi [300] [input.pbm] > [output.epsi]

SYNOPSIS

pbmtoepsi [-dpi N[xN]] [-bbonly] [pbmfile]

DESCRIPTION

pbmtoepsi converts PBM bitmaps to Encapsulated PostScript Interchange (EPSI) format. EPSI includes a low-resolution preview bitmap that non-PostScript applications can display while keeping a full-resolution PostScript representation for printing. Part of the Netpbm toolkit.

PARAMETERS

-bbonly

Create only a bounding box comment; do not include the image preview.
-dpi N[xN]
Output device resolution in dots per inch (default 72). Use "NxM" to specify horizontal and vertical resolutions separately.
-quiet
Suppress informational messages (common libnetpbm option).

INSTALL

sudo apt install netpbm
sudo dnf install netpbm
sudo pacman -S netpbm
sudo apk add netpbm
sudo zypper install netpbm
brew install netpbm
nix profile install nixpkgs#netpbm

SEE ALSO

pnmtops(1), pbmtoepson(1)