Linux command
pambrighten 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Increase image brightness by 50%
pambrighten -value 50 [input.pam] > [output.pam]
Decrease saturation by 30%
pambrighten -saturation -30 [input.pam] > [output.pam]
Adjust both brightness and saturation
pambrighten -value [20] -saturation [10] [input.pam] > [output.pam]
Read from stdin
cat [input.pam] | pambrighten -value [50] > [output.pam]
说明
pambrighten increases or decreases the Saturation and Value (from the HSV color space) of each pixel of a Netpbm image by a specified percentage. Positive values increase, negative values decrease. If no file is specified, reads from stdin. Minimum unique abbreviation of option names is acceptable. Double hyphens may be used instead of single hyphens. Part of the Netpbm toolkit.
参数
- -value _n_
- Change Value (brightness) by percentage. May be negative. Default is 0.
- -saturation _n_
- Change Saturation by percentage. May be negative. Default is 0.
FAQ
What is the pambrighten command used for?
pambrighten increases or decreases the Saturation and Value (from the HSV color space) of each pixel of a Netpbm image by a specified percentage. Positive values increase, negative values decrease. If no file is specified, reads from stdin. Minimum unique abbreviation of option names is acceptable. Double hyphens may be used instead of single hyphens. Part of the Netpbm toolkit.
How do I run a basic pambrighten example?
Run `pambrighten -value 50 [input.pam] > [output.pam]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -value _n_ do in pambrighten?
Change Value (brightness) by percentage. May be negative. Default is 0.