How to explode an image (only along the X axis)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
walterhiggins

How to explode an image (only along the X axis)

Post by walterhiggins »

Hi,
I was wondering if anyone knows if it's possible to explode an image only along the X axis.
What I would like is for the center of an image to be widened while the edges (left and right) of the image are narrowed.
Does anyone know how this might be done using perlMagick or command-line tools?
Any pointers/suggestions greatly appreciated.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to explode an image (only along the X axis)

Post by fmw42 »

Not sure what you really want. Can you post an example of input and resulting explode?

You can do barrel distortion in one direction only if you want. See

http://www.imagemagick.org/Usage/distorts/#barrel
http://www.fmwconcepts.com/imagemagick/ ... /index.php (pre-IM distort barrel script)
Post Reply