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 blurred background region around the input image. |
last modified: December 15, 2018
USAGE: surroundblur [-r resize] [-b bgsize] [-s smoothing] [-c color] [-t thickness]
[-d darkness] [-f fade] [-e extent] [infile] [outfile]
-r ... resize ...... resize of input image; WxH in pixels; default is input size PURPOSE: To create a blurred background region around the input image. DESCRIPTION: SURROUNDBLUR creates a blurred background region around the input image. A border and or drop shadow may be added between the image and the blurred background. ARGUMENTS: -r resize ... RESIZE of input image expressed as WxH in pixels or in percent as WxH%. The default is the original input size. The resize value should be smaller than the bgsize. -b bgsize ... BGSIZE is the blurred background size expressed as WxH in pixels or in percent as WxH%. The default is twice the original input size. The bgsize should be larger than the resize. -s smoothing ... SMOOTHING (blurring) amount to apply to the input to create the background. Values are integers>=0. The default=50. -c color ... COLOR is the border color. Any valid opaque IM color is allowed. The default=white. -t thickness ... THICKNESS of the border. Values are integers>0. The default=0 (no border). -d darkeness ... DARKNESS of the frame shadow. Values are 0<=integer<=100. The default=80. -f fade ... FADE (rolloff) of the shadow darkness. Values are integer>=0. The default=3. -e extent ... EXTENT (distance) of the shadow. Values are integer>=0. The default=0 (no shadow). # NOTE: This script is not designed for images with transparency. 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 |
Original Image |
![]() |
Arguments: defaults |
![]() |
Arguments: -c white -t 10 |
![]() |
Arguments: -d 80 -f 3 -e 5 |
![]() |
Arguments: -c white -t 10 -d 80 -f 3 -e 5 |
![]() |
Example 2 |
Original Image |
![]() |
Arguments: -r 50x50% -b 100x100% -c white -t 10 -d 80 -f 3 -e 5 |
![]() |
Example 3 |
Original Image |
![]() |
Arguments: -b 600x500 -c white -t 10 -d 80 -f 3 -e 5 |
![]() |
What the script does is as follows:
|