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