mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 19:43:11 +00:00
26 lines
886 B
Plaintext
26 lines
886 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pnmgamma
|
|
|
|
> Perform gamma correction on PNM images.
|
|
> More information: <https://netpbm.sourceforge.net/doc/pnmgamma.html>.
|
|
|
|
- Convert the image from BT.709 luminance to radiance or sRGB luminance:
|
|
|
|
`pnmgamma -{{bt709tolinear|bt709tosrgb}} {{path/to/image.pnm}} > {{path/to/output.pnm}}`
|
|
|
|
- Convert the image from radiance or sRGB luminance to BT.709 luminance:
|
|
|
|
`pnmgamma -{{lineartobt709|srgbtobt709}} {{path/to/image.pnm}} > {{path/to/output.pnm}}`
|
|
|
|
- Specify the gamma value used for the gamma transfer function:
|
|
|
|
`pnmgamma -gamma {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}`
|
|
|
|
- Specify the gamma value used for the gamma transfer function per color component:
|
|
|
|
`pnmgamma -rgamma {{value}} -ggamma {{value}} -bgamma {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}`
|