see barrel distortion
http://www.imagemagick.org/Usage/distorts/#barrel
see Anthony's rose examples
you need to combine half of two images, top half of bulge (barrel) and bottom half of pinch (pincushion)
rose.jpg
convert rose.jpg -matte -virtual-pixel transparent \
-distort Barrel "0.0 0.0 0.0 1.0 0.0 0.0 0.5 0.5" \
barrel_bulge.png
convert rose.jpg -matte -virtual-pixel transparent \
-distort Barrel "0.0 0.0 0.0 1.0 0.0 0.0 -0.5 1.9" \
barrel_pinch.png
convert barrel_bulge.png[70x23+0+0] barrel_pinch.png[70x23+0+23] -append barrel_bulge_pinch.png
In one long command line it would be:
convert rose.jpg \
\( -clone 0 -matte -virtual-pixel transparent \
-distort Barrel "0.0 0.0 0.0 1.0 0.0 0.0 0.5 0.5" -crop 70x23+0+0 +repage \) \
\( -clone 0 -matte -virtual-pixel transparent \
-distort Barrel "0.0 0.0 0.0 1.0 0.0 0.0 -0.5 1.9" -crop 70x23+0+23 +repage \) \
-delete 0 -append barrel_bulge_pinch.png
see
http://www.imagemagick.org/Usage/basics/#image_seq
for parenthesis and image sequence processing
Good reading at:
http://www.imagemagick.org/Usage/
and
http://www.imagemagick.org/script/comma ... ptions.php