# phpman > man > pbmtoepsi(1)

> **TLDR:** Convert a PBM image to an encapsulated PostScript style preview bitmap.
>
- Convert a PBM image to an encapsulated PostScript style preview bitmap:
  `pbmtoepsi {{path/to/image.pbm}} > {{path/to/output.bmp}}`
- Produce a quadratic output image with the specified resolution:
  `pbmtoepsi {{-d|-dpi}} {{144}} {{path/to/image.pbm}} > {{path/to/output.bmp}}`
- Produce an output image with the specified horizontal and vertical resolution:
  `pbmtoepsi {{-d|-dpi}} {{72x144}} {{path/to/image.pbm}} > {{path/to/output.bmp}}`
- Only create a boundary box:
  `pbmtoepsi {{-b|-bbonly}} {{path/to/image.pbm}} > {{path/to/output.bmp}}`

*Source: tldr-pages*

---

[pbmtoepsi(1)](https://www.chedong.com/phpMan.php/man/pbmtoepsi/1/markdown)                           General Commands Manual                          [pbmtoepsi(1)](https://www.chedong.com/phpMan.php/man/pbmtoepsi/1/markdown)



## NAME
       pbmtoepsi - convert a portable bitmap into an encapsulated PostScript style preview bitmap

## SYNOPSIS
       **pbmtoepsi** [**-bbonly**] [_pbmfile_]

## DESCRIPTION
       Reads a portable bitmap as input.  Produce an encapsulated Postscript style bitmap as output.
       The output is not a stand alone postscript file, it is only a preview bitmap,  which  can  be
       included  in  an  encapsulated  PostScript file.  Note that there is no epsitopbm tool - this
       transformation is one way.

       This utility is a part of the pstoepsi tool by Doug Crabill (<dgc@cs.purdue.edu>).

## OPTIONS
### -bbonly
              Only create a boundary box, don't fill it with the image.

## SEE ALSO
       [**pbm**(5)](https://www.chedong.com/phpMan.php/man/pbm/5/markdown), [**pnmtops**(1)](https://www.chedong.com/phpMan.php/man/pnmtops/1/markdown), [**pstopnm**(1)](https://www.chedong.com/phpMan.php/man/pstopnm/1/markdown), [**psidtopgm**(1)](https://www.chedong.com/phpMan.php/man/psidtopgm/1/markdown), [**pbmtolps**(1)](https://www.chedong.com/phpMan.php/man/pbmtolps/1/markdown), [**ps**(1)](https://www.chedong.com/phpMan.php/man/ps/1/markdown)

## AUTHOR
       Copyright (C) 1988 Jef Poskanzer, modified by Doug Crabill 1992



                                                1992                                    [pbmtoepsi(1)](https://www.chedong.com/phpMan.php/man/pbmtoepsi/1/markdown)
