pixtile [-h] [-ssquareinsize] [-wfile_width] [-nfile_height] [-Ssquareoutsize] [-Wout_width] [-Nout_height] file1 file2 ... fileN > file.pix
The input files have a default width of 64 pixels per scanline and are usually square, i.e. have the same height as width. Specifying the -s flag, changes the default size to squareinsize pixels per scanline and squareinsize scanlines as given in the argument list. The -w flag can be used to specify the input file width in pixels and the -n flag can be used to specify the input file height in scanlines.
If the -S flag is supplied, the output size is changed from the default value of 512 to squareoutsize pixels per scanline and squareoutsize scanlines. The -W flag sets the output width size to out_width pixels per scanline. Similarly, the -N flag sets the output height size to out_height scanlines.
The files being pasted together should have names of the form basename.num, where basename is given on the command line, and num is a consecutive series of integers. By default the first image is assumed to be number `` 0 '', but an alternate startframe can be given by using the -o flag and supplying startframe. The program keeps reading these small files until either the next frame does not exist, or the output file is full. They are placed in the output file from lower left to upper right. The progress of the composition is displayed on standard error.
If the basename is given as "-" (a minus sign), preceeded by a "--" (two minus signs) to terminate getopt(3) processing, then the stream of images is read from stdin rather than a file, such as might be generated by a program like pcd-pix(1). Such a stream could also be processed into files by pixbustup(1).
Alternatively, if more than one basename (filename) argument is supplied on the command line, the names of the files being pasted together are assumed to be explicitly stated and the -o flag is not valid. This allows files with different names to be used without having to change the name of the files.
This program is the companion of fbanim(1) which will step through these small images on a framebuffer capable of zooming and windowing. Thus many small low resolution frames can be used as an animation "preview" for a higher resolution sequence, the latter of which would go onto video tape or film.
pixtile -s 256 lowerleft lowerright upperleft upperright > out.pix
will read files
lowerleft,
lowerright,
upperleft,
and
upperright
placing them from lower left to upper right in a 512x512 file
out.pix.