Options (4)
booleanSpecify the gamma value used for the gamma transfer function
Example:
pnmgamma {{[-ga|-gamma]}} {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}booleanSpecify the gamma value used for the gamma transfer function per color component
Example:
pnmgamma {{[-rg|-rgamma]}} {{value}} {{[-gg|-ggamma]}} {{value}} {{[-bg|-bgamma]}} {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}booleanSpecify the gamma value used for the gamma transfer function per color component
Example:
pnmgamma {{[-rg|-rgamma]}} {{value}} {{[-gg|-ggamma]}} {{value}} {{[-bg|-bgamma]}} {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}booleanSpecify the gamma value used for the gamma transfer function per color component
Example:
pnmgamma {{[-rg|-rgamma]}} {{value}} {{[-gg|-ggamma]}} {{value}} {{[-bg|-bgamma]}} {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}Examples (4)
Convert the image from BT.709 luminance to radiance or sRGB luminance
pnmgamma -bt709tolinear|bt709tosrgb path/to/image.pnm > path/to/output.pnmConvert the image from radiance or sRGB luminance to BT.709 luminance
pnmgamma -lineartobt709|srgbtobt709 path/to/image.pnm > path/to/output.pnmSpecify the gamma value used for the gamma transfer function
pnmgamma [-ga|-gamma] value path/to/image.pnm > path/to/output.pnmSpecify the gamma value used for the gamma transfer function per color component
pnmgamma [-rg|-rgamma] value [-gg|-ggamma] value [-bg|-bgamma] value path/to/image.pnm > path/to/output.pnmmade by @shridhargupta | data from tldr-pages