Linux command
ppmshadow 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Add a default drop shadow
ppmshadow [input.ppm] > [output.ppm]
Specify blur radius for shadow softness
ppmshadow -b [8] [input.ppm] > [output.ppm]
Specify shadow offset direction
ppmshadow -x [5] -y [5] [input.ppm] > [output.ppm]
Create a translucent shadow
ppmshadow -t [input.ppm] > [output.ppm]
说明
ppmshadow adds a drop shadow effect to a PPM image, creating the appearance of the image floating above a background. The shadow is created by blurring a darkened copy of the image and placing it offset behind the original. The blur radius controls shadow softness, while x and y offsets control the apparent light direction. The -t option creates a translucent shadow that allows the background to show through. Part of the Netpbm toolkit. The input image must have a transparent (black) background area for the shadow to be visible. The output image is larger than the input by the shadow offset.
参数
- -b _N_
- Blur radius controlling shadow softness (default: 11).
- -x _N_
- Horizontal shadow offset in pixels (default: blur radius / 2).
- -y _N_
- Vertical shadow offset in pixels (default: same as -x).
- -t
- Create a translucent shadow instead of a solid black one.
FAQ
What is the ppmshadow command used for?
ppmshadow adds a drop shadow effect to a PPM image, creating the appearance of the image floating above a background. The shadow is created by blurring a darkened copy of the image and placing it offset behind the original. The blur radius controls shadow softness, while x and y offsets control the apparent light direction. The -t option creates a translucent shadow that allows the background to show through. Part of the Netpbm toolkit. The input image must have a transparent (black) background area for the shadow to be visible. The output image is larger than the input by the shadow offset.
How do I run a basic ppmshadow example?
Run `ppmshadow [input.ppm] > [output.ppm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -b _N_ do in ppmshadow?
Blur radius controlling shadow softness (default: 11).