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 screen-like effects to an image. |
last modified: December 15, 2018
USAGE: screeneffects [-s spacing] [-r] [-t type] [-a amount] [-m method] [-c color] infile outfile
-s ... spacing ... pixel spacing of screen pattern; float>0; default=6 PURPOSE: To apply screen-like effects to an image. DESCRIPTION: SCREENEFFECTS applies screen-like effects to an image. The screen effects may be either simple or displacement. In the former, a screen pattern is mixed with the image and can be colored. In the latter, the screen pattern comes from various image displacement patterns. The screen pattern is generated from a sine wave pattern along x and another along y. Then they are optionally rotated 45 degrees. ARGUMENTS: -s spacing ... SPACING is the approximate pixel spacing of the screen pattern. Values are floats>0. The default=6 -r ... ROTATE screen by 45 degrees from x and y orientation. Nominally, one gets more appealing results with no rotation for type=simple and with rotation for type=displace. -t type ... TYPE is screen type. Choices are simple (or s) and displace or (d). With type=simple, the screen pattern is mixed with the image and the screen can be colored. With type=displace, the screen texture comes from a displacement of the image. The default=simple. -a amount ... AMOUNT is the pixel displacement amount for type=displace. Values are floats>0. The default=6 -m method ... METHOD is the displacement method. Choices are: 1, 2 or 3. Two displacement maps are created from sine waves along the x and along the y direction. Each may then be rotated 45 degrees. With method=1, the x and y displacement maps are merged and the merged map is used for the both the x and y displacements. With method=2, the x and y displacement maps are not merged and are used for the x and y displacements, respectively. With method=3, the displacement maps are swapped and then used for the x and y displacements, respectively. The default=1. -c color ... COLOR is the screen color when type=simple. Any valid IM color specification is allowed. The default=black. See http://imagemagick.org/script/color.php 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 |
Arguments: |
Arguments: |
Arguments: |
Example 2 |
Original |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
What the script does is as follows:
This is equivalent to the following IM commands
|