diff --git a/ANNOUNCE b/ANNOUNCE index 476cd6877..9eeb97b11 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -149,12 +149,6 @@ Version 1.7.0alpha11 [February 8, 2013] which may be a library function (not an intrinsic). Removed unused #if 0 code. - =========================================================================== - NOTICE November 17, 2012: - The location of the git repository at SourceForge has changed. - Visit http://libpng.sf.net/ for details. - =========================================================================== - Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit https://lists.sourceforge.net/lists/listinfo/png-mng-implement diff --git a/CHANGES b/CHANGES index a0de31370..4f327da96 100644 --- a/CHANGES +++ b/CHANGES @@ -4435,12 +4435,6 @@ Version 1.7.0alpha11 [February 8, 2013] which may be a library function (not an intrinsic). Removed unused #if 0 code. - =========================================================================== - NOTICE November 17, 2012: - The location of the git repository at SourceForge has changed. - Visit http://libpng.sf.net/ for details. - =========================================================================== - Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit https://lists.sourceforge.net/lists/listinfo/png-mng-implement diff --git a/libpng-manual.txt b/libpng-manual.txt index 2c0467143..ed84d3617 100644 --- a/libpng-manual.txt +++ b/libpng-manual.txt @@ -4592,12 +4592,16 @@ any invalid pixels are decoded as opaque black by the decoder and written as-is by the encoder. Retrieving the maximum palette index found was added at libpng-1.5.15. -This statement must appear after png_read_png() or png_read_image(). +This statement must appear after png_read_png() or png_read_image() while +reading, and after png_write_png() or png_write_image() while writing. int max_palette = png_get_palette_max(png_ptr, info_ptr); -This will return the maximum palette index found, or "-1" if the palette -was not checked, or "0" if no palette was found. +This will return the maximum palette index found in the image, or "-1" if +the palette was not checked, or "0" if no palette was found. Note that this +does not account for any palette index used by ancillary chunks such as the +bKGD chunk; you must check those separately to determine the maximum +palette index actually used. A. Changes that affect users of libpng diff --git a/libpng.3 b/libpng.3 index 3235a48e5..53a49e33e 100644 --- a/libpng.3 +++ b/libpng.3 @@ -5087,12 +5087,16 @@ any invalid pixels are decoded as opaque black by the decoder and written as-is by the encoder. Retrieving the maximum palette index found was added at libpng-1.5.15. -This statement must appear after png_read_png() or png_read_image(). +This statement must appear after png_read_png() or png_read_image() while +reading, and after png_write_png() or png_write_image() while writing. int max_palette = png_get_palette_max(png_ptr, info_ptr); -This will return the maximum palette index found, or "-1" if the palette -was not checked, or "0" if no palette was found. +This will return the maximum palette index found in the image, or "-1" if +the palette was not checked, or "0" if no palette was found. Note that this +does not account for any palette index used by ancillary chunks such as the +bKGD chunk; you must check those separately to determine the maximum +palette index actually used. A. Changes that affect users of libpng