# phpman > man > pbmtobbnbg(1)

> **TLDR:** Convert a PBM image to a BitGraph graphic.
>
- Convert a PBM image to a BitGraph terminal Display Pixel Data sequence:
  `pbmtobbnbg < {{path/to/image.pbm}} > {{path/to/output.dpd}}`
- Specify the rasterop:
  `pbmtobbnbg < {{path/to/image.pbm}} {{3}} > {{path/to/output.dpd}}`

*Source: tldr-pages*

---

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



## NAME
       pbmtobbnbg - convert a portable bitmap into BitGraph graphics

## SYNOPSIS
       **pbmtobbnbg** [_rasterop_] [_x_ _y_] < _pbmfile_

## DESCRIPTION
       Reads  a  portable  bitmap as input.  Produces BBN BitGraph terminal Display Pixel Data (DPD)
       sequence as output.

       The rasterop can be specified on the command line.  If this is omitted, 3 (replace)  will  be
       used.   A  position  in (x,y) coordinates can also be specified.  If both are given, the ras‐
       terop comes first.  The portable bitmap is always taken from the standard input.

       Note that there is no bgtopbm tool.

       This programm was initially named pbmtobg.

## SEE ALSO
       [pbm(5)](https://www.chedong.com/phpMan.php/man/pbm/5/markdown)

## AUTHOR
       Copyright 1989 by Mike Parker.



                                             16 May 1989                               [pbmtobbnbg(1)](https://www.chedong.com/phpMan.php/man/pbmtobbnbg/1/markdown)
