The quantization and dithering code in pngquant is lifted from Jef Poskanzer's\\n'ppmquant', part of his wonderful PBMPLUS tool suite.\\n\\nGreg Roelofs hacked it into a (in his words) \\\"slightly cheesy\\\" 'pamquant' back\\nin 1997 (see http://pobox.com/~newt/greg_rgba.html) and finally he ripped out\\nthe cheesy file-I/O parts and replaced them with nice PNG code in December\\n2000. The PNG reading and writing code is a merged and slightly simplified\\nversion of readpng, readpng2, and writepng from his book \\\"PNG: The Definitive\\nGuide.\\\"\\nIn 2014 Greg has relicensed the code under the simplified BSD license.\\n\\nNote that both licenses are basically BSD-like; that is, use the code however\\nyou like, as long as you acknowledge its origins.\\n\\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\\n\\npngquant.c:\\n\\n   © 1989, 1991 by Jef Poskanzer.\\n\\n   Permission to use, copy, modify, and distribute this software and its\\n   documentation for any purpose and without fee is hereby granted, provided\\n   that the above copyright notice appear in all copies and that both that\\n   copyright notice and this permission notice appear in supporting\\n   documentation.  This software is provided \\\"as is\\\" without express or\\n   implied warranty.\\n\\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\\n\\npngquant.c and rwpng.c/h:\\n\\n   © 1997-2002 by Greg Roelofs; based on an idea by Stefan Schneider.\\n   © 2009-2014 by Kornel Lesi?ski.\\n\\n   All rights reserved.\\n\\n   Redistribution and use in source and binary forms, with or without modification,\\n   are permitted provided that the following conditions are met:\\n\\n   1. Redistributions of source code must retain the above copyright notice,\\n      this list of conditions and the following disclaimer.\\n\\n   2. Redistributions in binary form must reproduce the above copyright notice,\\n      this list of conditions and the following disclaimer in the documentation\\n      and/or other materials provided with the distribution.\\n\\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \\\"AS IS\\\"\\n   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\\n   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\\n   DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\\n   FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\\n   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\\n   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\\n   CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\\n   OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\\n   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\\n