1 README for libpng version 1.6.19 - November 12, 2015 (shared library 16.0)
\r
2 See the note about version numbers near the top of png.h
\r
4 See INSTALL for instructions on how to install libpng.
\r
6 Libpng comes in several distribution formats. Get libpng-*.tar.gz or
\r
7 libpng-*.tar.xz or if you want UNIX-style line endings in the text files,
\r
8 or lpng*.7z or lpng*.zip if you want DOS-style line endings.
\r
10 Version 0.89 was the first official release of libpng. Don't let the
\r
11 fact that it's the first release fool you. The libpng library has been in
\r
12 extensive use and testing since mid-1995. By late 1997 it had
\r
13 finally gotten to the stage where there hadn't been significant
\r
14 changes to the API in some time, and people have a bad feeling about
\r
15 libraries with versions < 1.0. Version 1.0.0 was released in
\r
19 Note that some of the changes to the png_info structure render this
\r
20 version of the library binary incompatible with libpng-0.89 or
\r
21 earlier versions if you are using a shared library. The type of the
\r
22 "filler" parameter for png_set_filler() has changed from png_byte to
\r
23 png_uint_32, which will affect shared-library applications that use
\r
26 To avoid problems with changes to the internals of png info_struct,
\r
27 new APIs have been made available in 0.95 to avoid direct application
\r
28 access to info_ptr. These functions are the png_set_<chunk> and
\r
29 png_get_<chunk> functions. These functions should be used when
\r
30 accessing/storing the info_struct data, rather than manipulating it
\r
31 directly, to avoid such problems in the future.
\r
33 It is important to note that the APIs did not make current programs
\r
34 that access the info struct directly incompatible with the new
\r
35 library, through libpng-1.2.x. In libpng-1.4.x, which was meant to
\r
36 be a transitional release, members of the png_struct and the
\r
37 info_struct can still be accessed, but the compiler will issue a
\r
38 warning about deprecated usage. Since libpng-1.5.0, direct access
\r
39 to these structs is not allowed, and the definitions of the structs
\r
40 reside in private pngstruct.h and pnginfo.h header files that are not
\r
41 accessible to applications. It is strongly suggested that new
\r
42 programs use the new APIs (as shown in example.c and pngtest.c), and
\r
43 older programs be converted to the new format, to facilitate upgrades
\r
47 Additions since 0.90 include the ability to compile libpng as a
\r
48 Windows DLL, and new APIs for accessing data in the info struct.
\r
49 Experimental functions include the ability to set weighting and cost
\r
50 factors for row filter selection, direct reads of integers from buffers
\r
51 on big-endian processors that support misaligned data access, faster
\r
52 methods of doing alpha composition, and more accurate 16->8 bit color
\r
55 The additions since 0.89 include the ability to read from a PNG stream
\r
56 which has had some (or all) of the signature bytes read by the calling
\r
57 application. This also allows the reading of embedded PNG streams that
\r
58 do not have the PNG file signature. As well, it is now possible to set
\r
59 the library action on the detection of chunk CRC errors. It is possible
\r
60 to set different actions based on whether the CRC error occurred in a
\r
61 critical or an ancillary chunk.
\r
63 The changes made to the library, and bugs fixed are based on discussions
\r
64 on the PNG-implement mailing list and not on material submitted
\r
65 privately to Guy, Andreas, or Glenn. They will forward any good
\r
66 suggestions to the list.
\r
68 For a detailed description on using libpng, read libpng-manual.txt. For
\r
69 examples of libpng in a program, see example.c and pngtest.c. For usage
\r
70 information and restrictions (what little they are) on libpng, see
\r
71 png.h. For a description on using zlib (the compression library used by
\r
72 libpng) and zlib's restrictions, see zlib.h
\r
74 I have included a general makefile, as well as several machine and
\r
75 compiler specific ones, but you may have to modify one for your own needs.
\r
77 You should use zlib 1.0.4 or later to run this, but it MAY work with
\r
78 versions as old as zlib 0.95. Even so, there are bugs in older zlib
\r
79 versions which can cause the output of invalid compression streams for
\r
80 some images. You will definitely need zlib 1.0.4 or later if you are
\r
81 taking advantage of the MS-DOS "far" structure allocation for the small
\r
82 and medium memory models. You should also note that zlib is a
\r
83 compression library that is useful for more things than just PNG files.
\r
84 You can use zlib as a drop-in replacement for fread() and fwrite() if
\r
85 you are so inclined.
\r
87 zlib should be available at the same place that libpng is, or at zlib.net.
\r
89 You may also want a copy of the PNG specification. It is available
\r
90 as an RFC, a W3C Recommendation, and an ISO/IEC Standard. You can find
\r
91 these at http://www.libpng.org/pub/png/documents/
\r
93 This code is currently being archived at libpng.sf.net in the
\r
94 [DOWNLOAD] area, and at ftp://ftp.simplesystems.org. If you can't find it
\r
95 in any of those places, e-mail me, and I'll help you find it.
\r
97 I am not a lawyer, but I believe that the Export Control Classification
\r
98 Number (ECCN) for libpng is EAR99, which means not subject to export
\r
99 controls or International Traffic in Arms Regulations (ITAR) because it
\r
100 is open source, publicly available software, that does not contain any
\r
101 encryption software. See the EAR, paragraphs 734.3(b)(3) and 734.7(b).
\r
103 If you have any code changes, requests, problems, etc., please e-mail
\r
104 them to me. Also, I'd appreciate any make files or project files,
\r
105 and any modifications you needed to make to get libpng to compile,
\r
106 along with a #define variable to tell what compiler/system you are on.
\r
107 If you needed to add transformations to libpng, or wish libpng would
\r
108 provide the image in a different way, drop me a note (and code, if
\r
109 possible), so I can consider supporting the transformation.
\r
110 Finally, if you get any warning messages when compiling libpng
\r
111 (note: not zlib), and they are easy to fix, I'd appreciate the
\r
112 fix. Please mention "libpng" somewhere in the subject line. Thanks.
\r
114 This release was created and will be supported by myself (of course
\r
115 based in a large way on Guy's and Andreas' earlier work), and the PNG
\r
118 Send comments/corrections/commendations to png-mng-implement at
\r
119 lists.sourceforge.net (subscription required; visit
\r
120 https://lists.sourceforge.net/lists/listinfo/png-mng-implement
\r
121 to subscribe) or to glennrp at users.sourceforge.net
\r
123 You can't reach Guy, the original libpng author, at the addresses
\r
124 given in previous versions of this document. He and Andreas will
\r
125 read mail addressed to the png-implement list, however.
\r
127 Please do not send general questions about PNG. Send them to
\r
128 png-mng-misc at lists.sf.net (subscription required; visit
\r
129 https://lists.sourceforge.net/lists/listinfo/png-mng-misc to
\r
130 subscribe). If you have a question about something
\r
131 in the PNG specification that is related to using libpng, send it
\r
132 to me. Send me any questions that start with "I was using libpng,
\r
133 and ...". If in doubt, send questions to me. I'll bounce them
\r
134 to others, if necessary.
\r
136 Please do not send suggestions on how to change PNG. We have
\r
137 been discussing PNG for twenty years now, and it is official and
\r
138 finished. If you have suggestions for libpng, however, I'll
\r
139 gladly listen. Even if your suggestion is not used immediately,
\r
140 it may be used later.
\r
142 Files in this distribution:
\r
144 ANNOUNCE => Announcement of this version, with recent changes
\r
145 CHANGES => Description of changes between libpng versions
\r
146 KNOWNBUG => List of known bugs and deficiencies
\r
147 LICENSE => License to use and redistribute libpng
\r
148 README => This file
\r
149 TODO => Things not implemented in the current library
\r
150 Y2KINFO => Statement of Y2K compliance
\r
151 example.c => Example code for using libpng functions
\r
152 libpng.3 => manual page for libpng (includes libpng-manual.txt)
\r
153 libpng-manual.txt => Description of libpng and its functions
\r
154 libpngpf.3 => manual page for libpng's private functions
\r
155 png.5 => manual page for the PNG format
\r
156 png.c => Basic interface functions common to library
\r
157 png.h => Library function and interface declarations (public)
\r
158 pngpriv.h => Library function and interface declarations (private)
\r
159 pngconf.h => System specific library configuration (public)
\r
160 pngstruct.h => png_struct declaration (private)
\r
161 pnginfo.h => png_info struct declaration (private)
\r
162 pngdebug.h => debugging macros (private)
\r
163 pngerror.c => Error/warning message I/O functions
\r
164 pngget.c => Functions for retrieving info from struct
\r
165 pngmem.c => Memory handling functions
\r
166 pngbar.png => PNG logo, 88x31
\r
167 pngnow.png => PNG logo, 98x31
\r
168 pngpread.c => Progressive reading functions
\r
169 pngread.c => Read data/helper high-level functions
\r
170 pngrio.c => Lowest-level data read I/O functions
\r
171 pngrtran.c => Read data transformation functions
\r
172 pngrutil.c => Read data utility functions
\r
173 pngset.c => Functions for storing data into the info_struct
\r
174 pngtest.c => Library test program
\r
175 pngtest.png => Library test sample image
\r
176 pngtrans.c => Common data transformation functions
\r
177 pngwio.c => Lowest-level write I/O functions
\r
178 pngwrite.c => High-level write functions
\r
179 pngwtran.c => Write data transformations
\r
180 pngwutil.c => Write utility functions
\r
181 arm => Contains optimized code for the ARM platform
\r
182 contrib => Contributions
\r
183 examples => Example programs
\r
184 gregbook => source code for PNG reading and writing, from
\r
185 Greg Roelofs' "PNG: The Definitive Guide",
\r
187 libtests => Test programs
\r
188 pngminim => Minimal decoder, encoder, and progressive decoder
\r
189 programs demonstrating use of pngusr.dfa
\r
190 pngminus => Simple pnm2png and png2pnm programs
\r
191 pngsuite => Test images
\r
192 tools => Various tools
\r
193 visupng => Contains a MSVC workspace for VisualPng
\r
194 projects => Contains project files and workspaces for
\r
196 owatcom => Contains a WATCOM project for building libpng
\r
197 visualc71 => Contains a Microsoft Visual C++ (MSVC)
\r
198 workspace for building libpng and zlib
\r
199 vstudio => Contains a Microsoft Visual C++ (MSVC)
\r
200 workspace for building libpng and zlib
\r
201 scripts => Directory containing scripts for building libpng:
\r
202 (see scripts/README.txt for the list of scripts)
\r
204 Good luck, and happy coding.
\r
206 -Glenn Randers-Pehrson (current maintainer, since 1998)
\r
207 Internet: glennrp at users.sourceforge.net
\r
209 -Andreas Eric Dilger (former maintainer, 1996-1997)
\r
210 Internet: adilger at enel.ucalgary.ca
\r
211 Web: http://www-mddsp.enel.ucalgary.ca/People/adilger/
\r
213 -Guy Eric Schalnat (original author and former maintainer, 1995-1996)
\r
214 (formerly of Group 42, Inc)
\r
215 Internet: gschal at infinet.com
\r