5
5
in 1997 (see http://pobox.com/~newt/greg_rgba.html) and finally he ripped out
6
6
the cheesy file-I/O parts and replaced them with nice PNG code in December
7
7
2000. The PNG reading and writing code is a merged and slightly simplified
8
version of readpng, readpng2, and writepng from his book:
10
"PNG: The Definitive Guide."
12
Pngquant therefore inherits both licenses, one for each source file.
8
version of readpng, readpng2, and writepng from his book "PNG: The Definitive
10
In 2014 Greg has relicensed the code under the simplified BSD license.
14
12
Note that both licenses are basically BSD-like; that is, use the code however
15
13
you like, as long as you acknowledge its origins.
21
Copyright (C) 1989, 1991 by Jef Poskanzer.
22
Copyright (C) 1997, 2000, 2002 by Greg Roelofs; based on an idea by
24
Copyright 2009-2013 by Kornel Lesinski.
19
© 1989, 1991 by Jef Poskanzer.
26
21
Permission to use, copy, modify, and distribute this software and its
27
22
documentation for any purpose and without fee is hereby granted, provided
33
28
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
35
rwpng.c (and rwpng.h):
37
Copyright (c) 1998-2002 Greg Roelofs. All rights reserved.
39
This software is provided "as is," without warranty of any kind,
40
express or implied. In no event shall the author or contributors
41
be held liable for any damages arising in any way from the use of
44
Permission is granted to anyone to use this software for any purpose,
45
including commercial applications, and to alter it and redistribute
46
it freely, subject to the following restrictions:
48
1. Redistributions of source code must retain the above copyright
49
notice, disclaimer, and this list of conditions.
50
2. Redistributions in binary form must reproduce the above copyright
51
notice, disclaimer, and this list of conditions in the documenta-
52
tion and/or other materials provided with the distribution.
53
3. All advertising materials mentioning features or use of this
54
software must display the following acknowledgment:
56
This product includes software developed by Greg Roelofs
57
and contributors for the book, "PNG: The Definitive Guide,"
58
published by O'Reilly and Associates.
60
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
30
pngquant.c and rwpng.c/h:
32
© 1997-2002 by Greg Roelofs; based on an idea by Stefan Schneider.
33
© 2009-2014 by Kornel Lesiński.
37
Redistribution and use in source and binary forms, with or without modification,
38
are permitted provided that the following conditions are met:
40
1. Redistributions of source code must retain the above copyright notice,
41
this list of conditions and the following disclaimer.
43
2. Redistributions in binary form must reproduce the above copyright notice,
44
this list of conditions and the following disclaimer in the documentation
45
and/or other materials provided with the distribution.
47
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
48
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
49
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
50
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
51
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
52
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
53
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
54
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
55
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
56
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.