Fred's ImageMagick Scripts


 

 

STUTTER


Creates a 'stuttered' offset-like effect in an image.

Download Script

last modified: May 30, 2008



USAGE: stutter [-s size] [-d direction] infile outfile
USAGE: stutter [-h or -help]

-s .... size ......... stutter offset size; size>0; default=16
-d .... direction .... x,h,horizontal or y,v,vertical or xy,vh,both;
...................... default=x

PURPOSE: To create a "stuttered" offset-like effect in an image.

DESCRIPTION: STUTTER creates a "stuttered" offset-like effect in an image.

ARGUMENTS:

-s size ... SIZE is the stutter offset size. Values are greater than 0. The default is 16.

-d direction ... DIRECTION is the stutter offset direction. Values may be horizontal specified as either x, h or horizontal; vertical specified as y, v or vertical or both specified as xy, hv or both. The default=x.

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


Image Stutter
http://www.cescg.org/CESCG97/boros/

Original

Arguments:
-s 16 -d x

Arguments:
-s 32 -d x

Arguments:
-s 16 -d y

Arguments:
-s 32 -d y

Arguments:
-s 16 -d xy

Arguments:
-s 32 -d xy



What the script does is as follows:

  • uses -fx to compute a new coordinate from the input image

This is equivalent to the following IM commands for stutter in the horizontal direction.

  • size2=`expr $size \* 2`
  • convert $infile -monitor -fx "u.p{i+mod(i,$size2)-$size,j}" $outfile