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. |
Creates a mesmerizing animation from an image. |
last modified: December 15, 2018
USAGE: mesmerize [-s shape] [-m mode] [-f factor] [-t thick] [-d delay] [-i incr] [-D direction] [-c colors] infile outfile
-s ... shape ....... shape of mesmerizing pattern; choices are: round or PURPOSE: To create a mesmerizing animation from an image. DESCRIPTION: MESMERIZE creates a mesmerizing animation from an image. The image may be binary, grayscale or color. The user may select the shape and colors for the pattern. ARGUMENTS: -s shape ... SHAPE of the mesmerizing pattern. The choices are: round (r) or diamond (d). The default=round. -m mode ... MODE of the mesmerizing pattern. The choices are: normal (n) or split (s). The default=split. -f factor ... FACTOR is the scale factor for the diamond shape pattern. Values are either 1 or 2. The default=2. Ignored for the round shape. -t thick ... THICK is the thickness of the pattern. Value are integers>0. The default=40. Thick must be an integer multiple of the incr to animate smoothly. -d delay ... DELAY for each frame of the animation. Values are integers>=0. The default=5. Provides fine adjustment of the animation speed. -i incr ... INCR is the increment or skip for the frames in the animation. Values are integers>0. The default=4. Provides coarse adjustment of the animation speed. -D direction .. DIRECTION of motion of the animation pattern. Choices are: out or in. The default=out. -c colors ... COLORS of the animation pattern. Values may be either "none" or a comma separated pair of opaque colors (names, rgb or hex values). The default="red,blue". For color images, use "none". NOTE: The effect on color images will produce an optical illusion whether you see the normal background image and moving stripes of its inverse or vice-versa. Look carefully and you can see either one. 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 - Binary Image - Round Shape |
Original |
![]() |
Arguments: -s round -m split -D out -c "red-blue" (defaults) |
![]() |
Arguments: -s round -m split -D in -c "red-blue" |
![]() |
Arguments: -s round -m normal -D out -c "red-blue" |
![]() |
Arguments: -s round -m normal -D in -c "red-blue" |
![]() |
Arguments: -s round -m normal -D in -c "none" |
![]() |
Example 2 - Binary Image - Diamond Shape |
Original |
![]() |
Arguments: -s diamond -m split -D out -f 2 -c "red-blue" |
![]() |
Arguments: -s diamond -m normal -D out -f 2 -c "red-blue" |
![]() |
Arguments: -s diamond -m split -D out -f 1 -c "red-blue" |
![]() |
Arguments: -s diamond -m normal -D out -f 1 -c "red-blue" |
![]() |
Example 3 - Grayscale Image - Round Shape |
Original |
![]() |
Arguments: -s diamond -m split -D out -c "red-blue" |
![]() |
Example 4 - Color Image - Round Shape |
Original |
![]() |
Arguments: -s diamond -m split -D out -c "none" |
![]() |
Arguments: -s diamond -m split -D out -c "none" |
![]() |
Example 5 - Color Image - Round Shape |
Original |
![]() |
Arguments: -s diamond -m split -D out -c "none" |
![]() |
Arguments: -s diamond -m normal -D out -c "none" |
![]() |
What the script does is as follows:
This is equivalent to the following IM commands.
|