Linux command
ppmdim 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Dim image
ppmdim [factor] [input.ppm] > [output.ppm]
Dim by 50%
ppmdim 0.5 [input.ppm] > [output.ppm]
Dim by 25%
ppmdim 0.25 [input.ppm] > [output.ppm]
说明
ppmdim reduces the brightness of a PPM image by multiplying each pixel value by the specified factor. A factor of 1.0 leaves the image unchanged, while 0.0 produces a completely black image. Reads from stdin if no file is specified. This is the complement of ppmflash, which brightens toward white. Both tools are useful for creating fade-to-black or fade-to-white animation effects when applied with varying factors across a sequence of frames. Part of the Netpbm toolkit. This program is largely superseded by pamfunc (with the -multiplier option), which is more general. ppmdim remains available for backward compatibility and may be faster due to its use of integer arithmetic.
FAQ
What is the ppmdim command used for?
ppmdim reduces the brightness of a PPM image by multiplying each pixel value by the specified factor. A factor of 1.0 leaves the image unchanged, while 0.0 produces a completely black image. Reads from stdin if no file is specified. This is the complement of ppmflash, which brightens toward white. Both tools are useful for creating fade-to-black or fade-to-white animation effects when applied with varying factors across a sequence of frames. Part of the Netpbm toolkit. This program is largely superseded by pamfunc (with the -multiplier option), which is more general. ppmdim remains available for backward compatibility and may be faster due to its use of integer arithmetic.
How do I run a basic ppmdim example?
Run `ppmdim [factor] [input.ppm] > [output.ppm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more ppmdim examples?
This page includes 3 examples for ppmdim, plus related commands for nearby Linux tasks.