LinuxCommandLibrary

ppmmix

Blend two PPM images together

TLDR

Mix two images

$ ppmmix [factor] [image1.ppm] [image2.ppm] > [output.ppm]
copy
50% blend
$ ppmmix 0.5 [a.ppm] [b.ppm] > [blend.ppm]
copy
25% from first image
$ ppmmix 0.25 [a.ppm] [b.ppm] > [output.ppm]
copy

SYNOPSIS

ppmmix factor file1 file2

DESCRIPTION

ppmmix blends two PPM images together using linear interpolation. The mixing factor controls the contribution of each image: a factor of 0.0 produces entirely the first image, 1.0 produces entirely the second, and values between create a proportional blend.
Both input images must have the same dimensions. This tool is useful for creating crossfade effects, image compositing, and generating intermediate frames for transitions. Part of the Netpbm toolkit.

PARAMETERS

FACTOR

Mixing factor (0.0-1.0).
FILE1
First input image.
FILE2
Second input image.

CAVEATS

Images must be same size. Part of Netpbm suite.

HISTORY

ppmmix was created as part of Netpbm for image blending.

SEE ALSO

ppmfade(1), pamcomp(1), ppm(5)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community