From 44e4dfc6f68c30a35bbee22805641374b9fc2db6 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Tue, 23 Jan 2007 01:48:23 +0000 Subject: [PATCH] Fix #38794: Document the new filters parameter for imagepng() Also add a note about filename usage git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@227939 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/constants.xml | 79 +++++++++++++++++++++++++- reference/image/functions/imagepng.xml | 27 ++++++++- 2 files changed, 104 insertions(+), 2 deletions(-) diff --git a/reference/image/constants.xml b/reference/image/constants.xml index f182cfcfe4..42eab6077d 100644 --- a/reference/image/constants.xml +++ b/reference/image/constants.xml @@ -1,5 +1,5 @@ - +
&reftitle.constants; &extension.constants; @@ -353,6 +353,83 @@ + + + + + + PNG_NO_FILTER + (integer) + + + + + + + + + + PNG_FILTER_NONE + (integer) + + + + + + + + + + PNG_FILTER_SUB + (integer) + + + + + + + + + + PNG_FILTER_UP + (integer) + + + + + + + + + + PNG_FILTER_AVG + (integer) + + + + + + + + + + PNG_FILTER_PAETH + (integer) + + + + + + + + + + PNG_ALL_FILTERS + (integer) + + + + diff --git a/reference/image/functions/imagepng.xml b/reference/image/functions/imagepng.xml index c158249404..c20df50f29 100644 --- a/reference/image/functions/imagepng.xml +++ b/reference/image/functions/imagepng.xml @@ -1,5 +1,5 @@ - + imagepng @@ -12,6 +12,7 @@ resourceimage stringfilename intquality + intfilters Outputs or saves a PNG image from the given @@ -30,6 +31,12 @@ The path to the saved file. If not set or &null;, the raw image stream will be outputed directly. + + + &null; is invalid if the quality and + filters arguments are not used. + + @@ -40,6 +47,18 @@ + + filters + + + Allows reducing the PNG file size. It is a bitmask field which may be + set to any combination of the PNG_FILTER_XXX + constants. PNG_NO_FILTER or + PNG_ALL_FILTERS may also be used to respectively + disable or activate all filters. + + + @@ -62,6 +81,12 @@ + + 5.1.3 + + Added the filters parameter. + + 5.1.2