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 tiltshift effect to an image |
last modified: December 16, 2018
USAGE: tiltshift [-m mode] [-s size] [-b blur] [-B brightness] [-C contast] [-S saturation] infile outfile
-m ... mode ......... mode of tiltshift; choices are: vertical (v), PURPOSE: Applies a tiltshift effect to an image. DESCRIPTION: TILTSHIFT applies a tiltshift effect to an image. There are optional modes including: vertical, horizontal, elliptical and circular ARGUMENTS: -m mode ... MODE of the tiltshift effect. The choices are: vertical (v), horizontal (h), elliptical (e) and circular (c). The default=vertical. -s size ... SIZE of the central unblurred area relative to a default amount. Values are -100<=integers<=100. The default=0. -b blur ... BLUR amount for the outer area. Values are floats>=0. The default=5. -B brightness ... BRIGHTNESS change of the image. Values are -100<=integers<=100. The default=0 (no change). -C contrast ... CONTRAST change of the image. Values are -100<=integers<=100. The default=0 (no change). -S saturation ... SATURATION change of the image. Values are -100<=integers<=100. The default=0 (no change). 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 -- Vertical Mode -- Variation in Size |
|
Original |
|
Arguments: -m vertical -s -25 -B 50 -C 20 |
|
Arguments: -m vertical -s 0 -B 50 -C 20 |
|
Arguments: -m vertical -s 75 -B 50 -C 20 |
Example 2 -- Horizontal Mode -- Variation in Size |
|
Original |
|
Arguments: -m horizontal -s -25 -B 50 -C 20 |
|
Arguments: -m horizontal -s 0 -B 50 -C 20 |
|
Arguments: -m horizontal -s 75 -B 50 -C 20 |
Example 3 -- Elliptical Mode -- Variation in Size |
|
Original |
|
Arguments: -m ellipse -s -25 -B 50 -C 20 |
|
Arguments: -m ellipse -s 0 -B 50 -C 20 |
|
Arguments: -m ellipse -s 75 -B 50 -C 20 |
Example 4 -- Circular Mode -- Variation in Size |
|
Original |
|
Arguments: -m circle -s -25 -B 50 -C 20 |
|
Arguments: -m circle -s 0 -B 50 -C 20 |
|
Arguments: -m circle -s 75 -B 50 -C 20 |
What the script does is as follows:
This is equivalent to the following IM commands for the case of mode=vertical:
|