The program is written in ANSI-C, so you need a compiler that can handle
ANSI-style prototypes, e.g. gcc. The program uses only functions required by
the ANSI-C specification with two exceptions: to detect if gif2png is run
without input redirection, fileno and isatty are used. These functions should
be available on most systems, however. If you system doesn't have these two
functions, replace the return statement in input_is_terminal with return 0.
In addition to the files included in this directory, you need the PNG sample
library and the zlib compression library. Both are available from
ftp://ftp.uu.net/graphics/png/src, filenames are libpng*.zip and zlib*.zip.
The Makefile assumes that zlib and pnglib are in subdirectories, the names
can be configured at the top of the Makefile. Since the makefile of libpng
assumes that zlib is in ../zlib, you either have to change the libpng makefile
or symlink the zlib directory correctly.
`make all-lib' should compile the libs before gif2png, this only works with a
make that parses ; in commands (or a shell, of course).
gif2png has to store the decompressed image data either in memory or in a
temporary file, currently the following modes are supported:
- (default) stores complete images in continuos blocks in memory, this works
with systems that support virtual memory. unix, djgpp, etc.
- (-DTMPFILE) store the image data in a temporary file, this should work on
any system regardless of memory restrictions, but may be significantly
slower than the full memory version, especially when writing interlaced PNGs.
I would be interested in hearing about necessary changes for compilation on
other systems, though I may not be able to spend much time updating gif2png,
due to my studies.
Alexander Lehmann <firstname.lastname@example.org>