# man > pbmreduce(1)

> **TLDR:** Proportionally reduce a PBM image.
>
- Reduce the specified image by the specified factor:
  `pbmreduce {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}`
- Use simple thresholding when reducing:
  `pbmreduce {{-t|-threshold}} {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}`
- Use the specified threshold for all quantizations:
  `pbmreduce {{-va|-value}} {{0.6}} {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}`

*Source: tldr-pages*

---

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

## NAME
       pbmreduce - read a PBM image and reduce it N times


## SYNOPSIS
       **pbmreduce **[**-floyd**|**-fs**|**-threshold**] [**-value _**val_] [**-randomseed=_**integer_] _N_ [_pbmfile_]

       You can abbreviate any option to its shortest unique prefix.


## DESCRIPTION
       This program is part of [**Netpbm**(1)](https://www.chedong.com/phpMan.php/man/Netpbm/1/markdown).

       **pbmreduce  **reads  a PBM image as input and reduces it by a factor of _N_, producing a PBM image
       as output.

       **pbmreduce **duplicates a lot of the functionality of **pamditherbw**; you could do  something  like
       pamscale | pamditherbw, but **pbmreduce **is a lot faster.

       You can use **pbmreduce **to "re-halftone" an image.  Let's say you have a scanner that only pro‐
       duces black&white, not grayscale, and it does a terrible job of halftoning (most b&w scanners
       fit this description).  One way to fix the halftoning is to scan at the highest possible res‐
       olution,  say  300  dpi, and then reduce by a factor of three or so using **pbmreduce**.  You can
       even correct the brightness of an image, by using the **-value **option.


## OPTIONS
       In addition to the options common to all programs based on libnetpbm  (most  notably  **-quiet**,
       see ]8;;index.html#commonoptions\ Common Options]8;;\ ), **pbmreduce **recognizes the following command line options:




### -threshold
              By  default,  **pbmreduce  **does  the  halftoning after the reduction via boustrophedonic
              Floyd-Steinberg error diffusion; however, you can use this option  to  specify  simple
              thresholding.  This gives better results when reducing line drawings.


### -floyd -fs
              Specify the Floyd-Steinberg error diffusion method.  This is the default.


### -value

              This  option alters the thresholding value for all quantizations.  It should be a real
              number between 0 and 1.  Above 0.5 means darker images; below 0.5 means lighter.


### -randomseed=_
              This is the seed for the random number generator that controls the halftoning.

              Use this to ensure you get the same image on separate invocations.

              This option was new in Netpbm 10.75 (June 2016).





## SEE ALSO
       [**pamenlarge**(1)](https://www.chedong.com/phpMan.php/man/pamenlarge/1/markdown), [**pamscale**(1)](https://www.chedong.com/phpMan.php/man/pamscale/1/markdown), [**pamditherbw**(1)](https://www.chedong.com/phpMan.php/man/pamditherbw/1/markdown), [**pbm**(1)](https://www.chedong.com/phpMan.php/man/pbm/1/markdown)


## AUTHOR
       Copyright (C) 1988 by Jef Poskanzer.

## DOCUMENT SOURCE
       This manual page was generated by the Netpbm tool 'makeman' from  HTML  source.   The  master
       documentation is at

              **<http://netpbm.sourceforge.net/doc/pbmreduce.html>**

netpbm documentation                        13 April 2016                   _Pbmreduce_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)
