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 pop art style image. |
last modified: December 15, 2018
USAGE: popart [-r rows] [-c cols] [-c1 colors1] ... [-c16 colors16]
[-i interp] [-g gain] infile outfile
-r ..... rows ....... number of rows of tiles; integer>0; maximum of 16 PURPOSE: To create a pop art effect image. DESCRIPTION: POPART creates an pop art style image. This image is a montage of images, each colored with different sets of colors from the input image. The default is a 2x2 montage with 2 colors each. ARGUMENTS: -r rows ... number of ROWS of tiles. Values are integers>0. A maximum of 16 total tiles in rows and columns combined. The default=2. -c cols ... number of COLS of tiles. Values are integers>0. A maximum of 16 total tiles in rows and columns combined. The default=2 -c1 colors1 ... COLORS1 are a space delimited set of colors for the first tile. Any set of opaque IM colors are allowed. The number of colors must be at least 2. If not specified, random colors will be created. The default=2. Note: do not add spaces in rgb(...) color triplets. etc up to -c16 colors16 ... COLORS16 are a space delimited set of colors for the last tile. Any set of opaque IM colors are allowed. The number of colors must be at least 2. If not specified, random colors will be created. The default=2. Note: do not add spaces in rgb(...) color triplets. -i interp ... INTERP is the interpolation method for colorizing; Any valid IM interpolation method is allowed. The default=nearestneighbor. -g gain ... GAIN amount for colorization. Values are floats>=0. The default=3. 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: -r 2 -c 2 (default) |
Example 2 |
Original Image |
Arguments: -r 2 -c 2 (default) |
Example 3 -- Variation in Gain |
Original Image |
Arguments: -r 2 -c 2 -g 1 |
Arguments: -r 2 -c 2 -g 3 (default) |
Arguments: -r 2 -c 2 -g 5 |
Example 4 -- Dark Color Followed By 3 Repeats Of Light Color |
Original Image |
Arguments: -r 1 -c 1 -g 0 -i bilinear -c1 "red yellow yellow yellow" |
What the script does is as follows:
|