LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmmorph

Create morphing sequence between images

TLDR

Morph between two images
$ ppmmorph -n [10] [control.ctl] [image1.ppm] [image2.ppm] > [sequence.ppm]
copy
Generate frames
$ ppmmorph -n [30] [morph.ctl] [start.ppm] [end.ppm]
copy

SYNOPSIS

ppmmorph [options] controlfile image1 image2

DESCRIPTION

ppmmorph creates a morphing sequence between two images. Control points define corresponding features in both images, and the tool generates smooth transitions.Part of Netpbm toolkit.

PARAMETERS

-n count

Number of intermediate frames.
controlfile
Defines corresponding points.

EXAMPLES

$ # Create 10-frame morph
ppmmorph -n 10 morph.ctl face1.ppm face2.ppm > sequence.ppm

# Split into individual frames
ppmmorph -n 20 morph.ctl a.ppm b.ppm | pamsplit frame%d.ppm

# Create animation
ppmmorph -n 30 ctrl.txt img1.ppm img2.ppm | \
  pamtogif > morph.gif
copy

CONTROL FILE FORMAT

$ # Lines of corresponding points
# x1 y1 x2 y2 for image1 point to image2 point
100 50  150 60
200 100 250 110
copy

CAVEATS

Requires careful control point placement. More points give smoother results. Images should be same size.

HISTORY

ppmmorph is part of Netpbm, implementing the morphing technique popularized in the 1990s for film effects.

SEE ALSO

pnmpaste(1), ppmfade(1), netpbm(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid