Copyright © Fred Weinhaus My scripts are available free of charge for non-commercial (non-profit) use, ONLY. For use of my scripts in commercial (for-profit) environments or non-free applications, please contact me (Fred Weinhaus) for licensing arrangements. My email address is fmw at alink dot net. If you: 1) redistribute, 2) incorporate any of these scripts into other free applications or 3) reprogram them in another scripting language, then you must contact me for permission, especially if the result might be used in a commercial or for-profit environment. Usage, whether stated or not in the script, is restricted to the above licensing arrangements. It is also subject, in a subordinate manner, to the ImageMagick license, which can be found at: http://www.imagemagick.org/script/license.php Please read the Pointers For Use on my home page to properly install and customize my scripts. |
Applies a turbulence-like warping of the image. |
last modified: December 16, 2018
USAGE: turbulence [-m method] [-d distance] [-s smooth] [-c channels] [-v vpmethod] [-b bgcolor] infile outfile
-m ... method ..... method of turbulence warping; choices are: displace or distort; PURPOSE: To apply a turbulence-like warping of the image. DESCRIPTION: TURBULENCE applies a turbulence-like warping of the image. The warping is done via a displacement/distortion mapping from an edge extracted version of the input image. Using channels=together will warp all channels the same. Using channels=separate will warp each channel separately. ARGUMENTS: -m method ... METHOD of turbulence warping. The choices are: displace or distort. The default=displace. -d distance ... DISTANCE amounts for x and y turbulence warping. Values are a comma separated pair of integers>=0. If only one value is supplied, then it will be use for both x and y distances. The default=20. -s smooth ... SMOOTH is the smoothing amount of turbulence warping. Values are integers>=0. The default=20. -c channels ... CHANNELS is the channel processing technique. The choices are: together (t) or separate (s). The default=together. -v vpmethod ... VPMETHOD is the virtual pixel method. Any valid IM virtual-pixel method may be specified. The default=mirror. -b bgcolor ... BGCOLOR is the background color when virtual pixel method is background. Any valid IM color may be specified. The default=black. REQUIREMENTS: IM 6.5.3-5 or higher when using method=distort. CAVEAT: No guarantee that this script will work on all platforms, nor that trapping of inconsistent parameters is complete and foolproof. Use At Your Own Risk. |
Example 1 -- Variation in Smooth |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 2 -- Variation in Distance |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 3 |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 4 |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 5 - Displace: Together vs. Separate |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 6 - Distort: Together vs. Separate |
|
Original |
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
What the script does is as follows:
This is equivalent to the following IM commands for the case of channels=together
|