# yuy2topam - convert YUY2 bytes to PAM - man(1) - [phpMan]

> **TLDR:** Convert YUY2 bytes to PAM.
>
- Convert YUY2 bytes to PAM:
  `yuy2topam {{-w|-width}} {{value}} {{-h|-height}} {{value}} {{path/to/file.yuy2}} > {{path/to/file.pam}}`

*Source: tldr-pages*

---

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

## NAME
       yuy2topam - convert YUY2 bytes to PAM


## SYNOPSIS
### yuy2topam

### -width=_ -height=_


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

       **yuy2topam  **reads  raw YUY2 bytes as input and produces a PAM image as output.  The input file
       is just YUY2 bytes.  You have to specify the width and height on the command line, since  the
       program obviously can't get them from the file.

       The output image has maxval 255.


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




### -width
              Width of the image, in pixels.  This must be an even number.


### -height
              Height of the image.



       These options are mandatory.


## SEE ALSO
       [**pam**(1)](https://www.chedong.com/phpMan.php/man/pam/1/markdown)


## AUTHOR
       Michael Haardt <<_michael@moria.de_>>.

## 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/yuy2topam.html>**

netpbm documentation                      23 December 2014                  _Yuy2topam_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)
