Fred's ImageMagick Scripts



    Licensing:

    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.

TYPEWRITER


Creates a typewriter style scrolling text animation.

Download Script

last modified: November 20, 2023



USAGE: typewriter [-f font] [-p pointsize] [-t txtcolor] [-b bgcolor] textfile outfile USAGE: typewriter [-h or -help]

-f ... font ........ font or font file; only monospaced fonts work; default=CourierNewB
-p ... pointsize ... pointsize for font; integer>0; default=24
-t ... txtcolor .... color of text; any valid IM color allowed; default=black
-b ... bgcolor ..... color of background; any valid IM color allowed; default=white

textfile is a text file containing the lines of text

PURPOSE: Creates a typewriter style scrolling text animation.

DESCRIPTION: TYPEWRITER creates a typewriter style scrolling text animation.

ARGUMENTS:

-f font ... FONT is the font or font file. Only monospaced fonts will work. The default=CourierNewB

-p pointsize ... POINTSIZE for font. Values are integers>0. The default=24

-t txtcolor ... TXTCOLOR is the color of the text. Any valid IM color is allowed. The default=black

-b bgcolor ... BGCOLOR is the color of the background. Any valid IM color is allowed. The default=white

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.


EXAMPLES


Example 1

Arguments:
-f CourierNewB -p 24 -t black -b white
(defaults)

Arguments:
-f CourierNewB -p 24 -t red -b skyblue



What the script does is as follows:

  • Loops over each line of text from the text file
  • Uses label: to create increasingly longer text frames
    adding one character at a time
  • Uses -distort affine to scroll vertically