Fred's ImageMagick Scripts
My scripts are available free of charge for non-commercial use. If you redistribute or incorporate any of these scripts into other free applications, you may use my scripts by simply referencing my name and this web page: Fred Weinhaus and http://www.fmwconcepts.com/imagemagick/index.html For use of my scripts in commercial use or non-free applications, please contact me for
licensing arrangements. Usage, whether stated in script or not, is also subject to the ImageMagick license, which can be found at: http://www.imagemagick.org/script/license.php |
|
Applies screen-like effects to an image. |
last modified: November 28, 2011
|
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
|