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. |
Adds text to an image to simulate etching on glass. |
last modified: August 15, 2019
USAGE: textetch -t text [-p pointsize] [-f font] [-c color] [-g gravity] [-o offset]
[-a arc] [-r rotation] [-n noise] [-i imageoffset] [-s scale] [-b brighness]
[-C compose] infile [clipart] outfile
-t ... text .......... text to apply to the input image. Required. PURPOSE: Adds text to an image to simulate etching on glass. DESCRIPTION: TEXTETCH adds text to an image to simulate etching on glass. Text is nominally added in one line. Multiple line format is controlled by adding new line \n characters within the text. One optional clipart file may be added. It should have a transparent background and will be converted to grayscale and optionally colorized the same as the text. ARGUMENTS: -t text ... TEXT string to apply to the image. Required. Must be enclosed in quotes. -p pointsize ... POINTSIZE for the text. Values are integer>0. The default=28. -f font ... FONT name or path to font file. The default=arial. -c color ... COLOR of the font. Any valid opaque IM color is allowed. The default="gray(128)". -g gravity ... GRAVITY setting for the offset placement of text. The choices are: center (c) or northwest (n). The default=center. -o offset ... OFFSET placement of the text relative to the gravity setting. The format is +-X+-Y. The default="+0+0" -a arc ... ARC downward curvature of the text in degrees. Values are 0<=integer<=360. The default=0. -r rotation ... ROTATION angle of text. Values are 0<=integer<=360. The default=0. -n noise ... NOISE amount to use to texturize the text. Values are float>=0. The default=0.5. -i imageoffset ... IMAGE OFFSET of clipart placement relative to gravity setting. The format is +-X+-Y; default="+0+0". -s scale ... SCALE in percent for clipart. Values are integer>0. The default=100 (indicates no change). -b brightness ... BRIGHTNESS adjustment for the clipart. Values are integer>0. The default=100 (indicates no change) -C compose ... COMPOSE method for compositing text and clipart; choices are: over (o) or multiply (m). The default=over. 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: |
|
![]() |
Example 2 |
|
Original |
|
Image![]() |
Clipart![]() |
Arguments: |
Arguments: |
![]() |
![]() |
Example 3 |
|
Original |
|
Image![]() |
Clipart![]() |
Arguments: |
Arguments: |
![]() |
![]() |
Example 4 |
|
Original |
|
![]() |
|
Arguments: |
|
![]() |
|
Arguments: |
|
![]() |
What the script does is as follows:
This is equivalent to the following IM commands
|