home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
p
/
ppm2fli
/
Docs
/
RISC-OS
< prev
next >
Wrap
Text File
|
1996-08-17
|
4KB
|
112 lines
ppm2fli and unflick
Copyright Klaus Ehrenfried
RISC OS ports by Lee Noar
The rest of the documentation provided in this package is the original and
therefore contains references to Unix specific details which should be
ignored. This document is additional to the original and designed to show any
differences that arise through the change of platform from Unix to RISC OS.
To make these tools available from the command line, either double-click on
!SetPaths to add them to your run path or move them into your run path, for
example, by copying them to your library directory.
ppm2fli
-------
RISC OS port V0.01 (16th August 1996)
This is a RISC OS port of the Unix utility ppm2fli. It's purpose is to
create FLI/FLC animation files from individual frame files. The animation
files can then be played with an application like !FliPlayer or !MovieFS
(with !ARPlayer).
ppm2fli is used as follows:
ppm2fli <options> <list-file> <animation-file>
The options are listed in the original documentation. The <list-file>
parameter is the name of a file that contains a list of newline (character
10) separated filenames for the images. Under RISC OS, I have found that the
easiest way to create such a file is to select all the files in the directory
viewer and shift-drag them all to an empty text editor's window where the
names of all the files will be inserted. The resulting list will be space
separated, so call up the editor's search and replace dialogue box and
replace all spaces with newline characters. For example, in !Zap, the
dialogue box is produced by SHIFT-F4 where a space is entered in the 'search
for' field and \n is entered in the 'replace with' field. When the list is
formatted properly, it may be necessary to ensure that the files are listed
in the correct order. This file is then saved, perhaps to the RAM disc, so
that it can be shift-dragged to a task window when constructing the command.
Restrictions (or perhaps not)
------------
Currently filters, as defined by the +f option, are disabled. However, I do
not think that this is a problem. Filters seem to be used for two main
purposes:-
1) if the input files are of the wrong type and need to be converted,
2) if the input files are compressed and need to be decompressed first.
I see the main use for ppm2fli as an animation creator for the frames created
by POV-Ray, which can create images of the correct type anyway. If
conversion is necessary, then !ChangeFSI can be used to convert many types of
file to the PPM file type (although this may need to be done via the command
line).
As for compression, ZIP archives maintained by !SparkFS can be treated
exactly like normal directories. A list-file of ZIPed images can be created
in the same way as described above and !SparkFS will decompress them
automatically as ppm2fli requests the files.
unflick
-------
RISC OS port V0.01 (17th August 1996)
This is a RISC OS port of the Unix utility unflick. It's purpose is to
extract individual frames from an FLI/FLC animation file.
unflick is used as follows:
unflick <options> <animation> <base> <extension>
The options are described in the original documentation.
Output filenames
----------------
If the parameter <extension> is omitted, the names of the generated files
are composed of the given <base> followed by a number field:
base001,
base002,
base003,
etc.
You must ensure that the final filename does not exceed ten characters in
length, unless the images are being output to an archive that allows long
filenames.
If an <extension> is given, then the file names consist of the <base>
followed by the number field, a back slash character and the given extension:
base001/ext,
base002/ext,
base003/ext,
etc.
Again you must ensure that the resulting filename does not exceed ten
characters, otherwise it will be truncated. I decided to leave the
option of an extension in unflick to make the possible use of resulting files
in DOS easier.
Output compression
------------------
Unfortunately, I had to disable the options -z and -zz. These allowed the
use of compress or gzip to compress the output files. I was only able to try
gzip and found that it crashed the machine when automatically invoked from
unflick. It worked correctly when I used it to manually compress the files.
Automatic compression of output files can still be achieved by specifying a
base name that exists within a !SparkFS ZIP archive.
Lee Noar
<leenoar@argonet.co.uk>