gif2png (version 0.6 beta) Copyright (C) 1995 Alexander Lehmann This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications (see below), and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. 4. Binary only distributions of the software must include the file README with the copyright statement. You are welcome to add a copyright statement for your modifications and a contact address, though. Note that this program uses the LZW decompression algorithm, which due to patent claims probably requires you to license if you use the algorithm in a commercial program or distribute this program on a for-profit basis. (See http://www.unisys.com) Part of this program (gifread.c) carries the following copyright: /* +-------------------------------------------------------------------+ */ /* | Copyright 1990 - 1994, David Koblas. (koblas@netcom.com) | */ /* | Permission to use, copy, modify, and distribute this software | */ /* | and its documentation for any purpose and without fee is hereby | */ /* | granted, provided that the above copyright notice appear in all | */ /* | copies and that both that copyright notice and this permission | */ /* | notice appear in supporting documentation. This software is | */ /* | provided "as is" without express or implied warranty. | */ /* +-------------------------------------------------------------------+ */ (This file was taken from the Moasic 2.5 distribution, so another copyright may apply, but I haven't received any reply from NCSA yet) Part of the program (437_l1.c) was generated by trans100 written by Kosta Kostis . This package (great source for character conversion tables) is available as ftp://ftp.uni-erlangen.de:pub/doc/ISO/charsets/transXXX.tar.gz, where XXX is replaced by a version number. The png sample library is Copyright (c) 1995 Guy Eric Schalnat, Group 42, Inc. and is available from ftp://ftp.uu.net/graphics/png/src/libpng*.zip The zlib compression library is Copyright (C) 1995 Jean-loup Gailly and Mark Adler and is available from ftp://ftp.uu.net/graphics/png/src/zlib-*.tar.gz The PNG specification is Copyright 1995, Thomas Boutell and is available from ftp://ftp.uu.net/graphics/png/documents. Obviously without the PNG effort this program wouldn't have been possible (or even conceivable). The Graphics Interchange Format(c) is the Copyright property of CompuServe Incorporated. GIF(sm) is a Service Mark property of CompuServe Incorporated. The GIF spec is available from any SimTel mirror as msdos/gif/gif89a.zip, e.g. on ftp://oak.oakland.edu/SimTel OK, now that we got this ground covered, we switch to more `normal' tone: If you are reading this, you have received gif2png either in source or precompiled binary form. If you want to compile the program yourself, see the file COMPILING. If you have received the program is precompiled form, the source code is available from ftp://ftp.uu.net/graphics/png/applications/gif2png*.zip Note that this program is considered a beta version, it has performed satisfactory for me and is fairly complete, though there may be a few bits missing. However, with the diversity of computer systems out there, you may run into problems both when compiling and running the program. If you are converting your GIF collection, you should take care to verify that the conversion was successful with any PNG reading program, e.g. QPV. The delete option is currently disabled. The usage of the program is as follows: gif2png [ -dhi ] [file[.gif]] ... -d delete source GIF files after successful conversion -i create interlaced PNG files -h create histogram chunks for color files -p display progress of PNG writing in % -r try to recover corrupt GIF files -s do not write Software chunk -t ignore Plain Text Extensions if no source files are listed, stdin is converted to noname.png (may not work on systems that distinguish between text and binary mode) The program will try to preserve the information contained in a GIF file as close as possible, including comments, application data. Plain text extensions are currently not supported, however this will probably be fixed in a future version of the program. If a multi-image GIF is encountered, multiple PNG files are created, names file.png, file.p01, file.p02 etc. Alexander Lehmann