From 2318c33673f2f1b39756de97971501e7dec54d2e Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Mon, 21 Feb 2005 20:59:54 +0000 Subject: [PATCH] Document that jpeg and wbmp support requires GD-1.8 or later. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@180390 c90b9560-bf6c-de11-be94-00142212c4b1 --- language-snippets.ent | 7 ++++++- reference/image/functions/imagecreatefromjpeg.xml | 3 ++- reference/image/functions/imagecreatefromwbmp.xml | 9 ++------- reference/image/functions/imagejpeg.xml | 11 ++++------- reference/image/functions/jpeg2wbmp.xml | 14 +++++--------- reference/image/functions/png2wbmp.xml | 11 ++--------- 6 files changed, 21 insertions(+), 34 deletions(-) diff --git a/language-snippets.ent b/language-snippets.ent index 7ada01c01f..0855822781 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -186,12 +186,17 @@ function.'> if PHP is compiled using . '> +JPEG support is only available if +PHP was compiled against GD-1.8 or later.'> + +WBMP support is only available if +PHP was compiled against GD-1.8 or later.'> + This function is only available if PHP is compiled with the bundled version of the GD library.'> This function requires GD 2.0.1 or later.'> - domnode_append_child.'> diff --git a/reference/image/functions/imagecreatefromjpeg.xml b/reference/image/functions/imagecreatefromjpeg.xml index d9ab2f2a08..b7f3ae90eb 100644 --- a/reference/image/functions/imagecreatefromjpeg.xml +++ b/reference/image/functions/imagecreatefromjpeg.xml @@ -1,5 +1,5 @@ - + @@ -47,6 +47,7 @@ function LoadJpeg($imgname) + ¬e.config.jpeg; &tip.fopen-wrapper; &warn.no-win32-fopen-wrapper; diff --git a/reference/image/functions/imagecreatefromwbmp.xml b/reference/image/functions/imagecreatefromwbmp.xml index e65745754f..ac98d4fdf6 100644 --- a/reference/image/functions/imagecreatefromwbmp.xml +++ b/reference/image/functions/imagecreatefromwbmp.xml @@ -1,5 +1,5 @@ - + @@ -47,12 +47,7 @@ function LoadWBMP($imgname) - - - WBMP support is only available if PHP was compiled - against GD-1.8 or later. - - + ¬e.config.wbmp; &tip.fopen-wrapper; &warn.no-win32-fopen-wrapper; diff --git a/reference/image/functions/imagejpeg.xml b/reference/image/functions/imagejpeg.xml index 7352ed1818..f29dd0330f 100644 --- a/reference/image/functions/imagejpeg.xml +++ b/reference/image/functions/imagejpeg.xml @@ -1,5 +1,5 @@ - + @@ -28,12 +28,9 @@ header, you can create a PHP script that outputs JPEG images directly. - - - JPEG support is only available if PHP was compiled - against GD-1.8 or later. - - + + ¬e.config.jpeg; + quality is optional, and ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). diff --git a/reference/image/functions/jpeg2wbmp.xml b/reference/image/functions/jpeg2wbmp.xml index 9b60c9d02e..9bab28dd72 100644 --- a/reference/image/functions/jpeg2wbmp.xml +++ b/reference/image/functions/jpeg2wbmp.xml @@ -1,5 +1,5 @@ - + @@ -23,14 +23,10 @@ d_width you specify the height and width of the destination image. - - - - WBMP support is only available if PHP was compiled - against GD-1.8 or later. - - - + + ¬e.config.jpeg; + ¬e.config.wbmp; + See also png2wbmp. diff --git a/reference/image/functions/png2wbmp.xml b/reference/image/functions/png2wbmp.xml index 4213be8e86..8eccfd4481 100644 --- a/reference/image/functions/png2wbmp.xml +++ b/reference/image/functions/png2wbmp.xml @@ -1,5 +1,5 @@ - + @@ -23,14 +23,7 @@ d_width you specify the height and width of the destination image. - - - - WBMP support is only available if PHP was compiled - against GD-1.8 or later. - - - + ¬e.config.wbmp; See also jpeg2wbmp.