LinuxCommandLibrary

ppmshadow

Add drop shadow effect to images

TLDR

Add drop shadow

$ ppmshadow [input.ppm] > [output.ppm]
copy
Specify blur radius
$ ppmshadow -b [8] [input.ppm] > [output.ppm]
copy
Specify shadow offset
$ ppmshadow -x [5] -y [5] [input.ppm] > [output.ppm]
copy

SYNOPSIS

ppmshadow [options] [file]

DESCRIPTION

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.

PARAMETERS

FILE

Input PPM file.
-b N
Blur radius.
-x N
X offset.
-y N
Y offset.
-t
Translucent shadow.

CAVEATS

Requires transparent background. Part of Netpbm suite.

HISTORY

ppmshadow was created as part of Netpbm for shadow effect generation.

SEE ALSO

ppm(5), pnmcomp(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community