| GIF Reader utility class
Parse GIF code from an inputStream without using java.awt
(to avoid the need of a display on a server)
Use a modified version of the GIFDecoder part the PJA Toolkit
Part of the implementation has been commented because we didn't need it
Basically everything that was dealing with GIF comments output
and the creation of an RGB image
With kind permission of Emmanuel PUYBARET from eteks
Lots of contributions here, but the code is reliable and approved
Following is the initial copyright notice (which for this project is Apache style)
Copyright (c) 2000 Emmanuel PUYBARET / eTeks . All Rights Reserved.
Raster over-run errors fixed by Alan Dix (alan@hcibook.com www.hiraeth.com/alan)
Visit eTeks web site for up-to-date versions of the original file and other
Java tools and tutorials : http://www.eteks.com/
This file is based and translated from the following C source file :
xvgif.c - GIF loading code for 'xv'. Based strongly on...
gif2ras.c - Converts from a Compuserve GIF (tm) image to a Sun raster image.
Copyright (c) 1988, 1989 by Patrick J. Naughton
Author: Patrick J. Naughton
naughton@wind.sun.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 file is provided AS IS with no warranties of any kind. The author
shall have no liability with respect to the infringement of copyrights,
trade secrets or any patents by this file or any part thereof. In no
event will the author be liable for any lost revenue or profits or
other special, indirect and consequential damages.
|