diff --git a/reference/image/figures/imagearc.png b/reference/image/figures/imagearc.png new file mode 100644 index 0000000000..56981c7726 Binary files /dev/null and b/reference/image/figures/imagearc.png differ diff --git a/reference/image/figures/imagechar.png b/reference/image/figures/imagechar.png new file mode 100644 index 0000000000..e68ff987e4 Binary files /dev/null and b/reference/image/figures/imagechar.png differ diff --git a/reference/image/figures/imagecharup.png b/reference/image/figures/imagecharup.png new file mode 100644 index 0000000000..ddafc33ff0 Binary files /dev/null and b/reference/image/figures/imagecharup.png differ diff --git a/reference/image/figures/imagecolorallocatealpha.png b/reference/image/figures/imagecolorallocatealpha.png new file mode 100644 index 0000000000..315ab9de32 Binary files /dev/null and b/reference/image/figures/imagecolorallocatealpha.png differ diff --git a/reference/image/figures/imagecopyresampled.jpg b/reference/image/figures/imagecopyresampled.jpg new file mode 100644 index 0000000000..ce7df54eaa Binary files /dev/null and b/reference/image/figures/imagecopyresampled.jpg differ diff --git a/reference/image/figures/imagecopyresampled_2.jpg b/reference/image/figures/imagecopyresampled_2.jpg new file mode 100644 index 0000000000..5b5b6fdc6b Binary files /dev/null and b/reference/image/figures/imagecopyresampled_2.jpg differ diff --git a/reference/image/figures/imagecopyresized.jpg b/reference/image/figures/imagecopyresized.jpg new file mode 100644 index 0000000000..2f3c62ae50 Binary files /dev/null and b/reference/image/figures/imagecopyresized.jpg differ diff --git a/reference/image/figures/imagecreate.png b/reference/image/figures/imagecreate.png new file mode 100644 index 0000000000..6cb3e56d00 Binary files /dev/null and b/reference/image/figures/imagecreate.png differ diff --git a/reference/image/figures/imagecreatefromgif.gif b/reference/image/figures/imagecreatefromgif.gif new file mode 100644 index 0000000000..442562bed5 Binary files /dev/null and b/reference/image/figures/imagecreatefromgif.gif differ diff --git a/reference/image/figures/imagecreatefromjpeg.gif b/reference/image/figures/imagecreatefromjpeg.gif new file mode 100644 index 0000000000..288cf04272 Binary files /dev/null and b/reference/image/figures/imagecreatefromjpeg.gif differ diff --git a/reference/image/figures/imagecreatefrompng.gif b/reference/image/figures/imagecreatefrompng.gif new file mode 100644 index 0000000000..ea73a37e93 Binary files /dev/null and b/reference/image/figures/imagecreatefrompng.gif differ diff --git a/reference/image/figures/imagecreatefromstring.png b/reference/image/figures/imagecreatefromstring.png new file mode 100644 index 0000000000..dd89233599 Binary files /dev/null and b/reference/image/figures/imagecreatefromstring.png differ diff --git a/reference/image/figures/imagecreatetruecolor.png b/reference/image/figures/imagecreatetruecolor.png new file mode 100644 index 0000000000..5629f964ee Binary files /dev/null and b/reference/image/figures/imagecreatetruecolor.png differ diff --git a/reference/image/figures/imageellipse.png b/reference/image/figures/imageellipse.png new file mode 100644 index 0000000000..7dda55a186 Binary files /dev/null and b/reference/image/figures/imageellipse.png differ diff --git a/reference/image/figures/imagefill.png b/reference/image/figures/imagefill.png new file mode 100644 index 0000000000..1618d55394 Binary files /dev/null and b/reference/image/figures/imagefill.png differ diff --git a/reference/image/figures/imagefilledarc.png b/reference/image/figures/imagefilledarc.png new file mode 100644 index 0000000000..61210fa5b2 Binary files /dev/null and b/reference/image/figures/imagefilledarc.png differ diff --git a/reference/image/figures/imagefilledellipse.png b/reference/image/figures/imagefilledellipse.png new file mode 100644 index 0000000000..198ab4f47c Binary files /dev/null and b/reference/image/figures/imagefilledellipse.png differ diff --git a/reference/image/figures/imagefilledpolygon.png b/reference/image/figures/imagefilledpolygon.png new file mode 100644 index 0000000000..4d54965574 Binary files /dev/null and b/reference/image/figures/imagefilledpolygon.png differ diff --git a/reference/image/figures/imagepolygon.png b/reference/image/figures/imagepolygon.png new file mode 100644 index 0000000000..0fc560444f Binary files /dev/null and b/reference/image/figures/imagepolygon.png differ diff --git a/reference/image/figures/imagerotate.jpg b/reference/image/figures/imagerotate.jpg new file mode 100644 index 0000000000..eada146f4c Binary files /dev/null and b/reference/image/figures/imagerotate.jpg differ diff --git a/reference/image/figures/imagesetstyle.jpg b/reference/image/figures/imagesetstyle.jpg new file mode 100644 index 0000000000..02d4df9001 Binary files /dev/null and b/reference/image/figures/imagesetstyle.jpg differ diff --git a/reference/image/figures/imagestring.png b/reference/image/figures/imagestring.png new file mode 100644 index 0000000000..e5488e2f7a Binary files /dev/null and b/reference/image/figures/imagestring.png differ diff --git a/reference/image/functions/imagearc.xml b/reference/image/functions/imagearc.xml index 0372f74592..6e22fb2f15 100644 --- a/reference/image/functions/imagearc.xml +++ b/reference/image/functions/imagearc.xml @@ -1,5 +1,5 @@ - + imagearc @@ -110,10 +110,17 @@ $img = imagecreatetruecolor(200, 200); // allocate some colors $white = imagecolorallocate($img, 255, 255, 255); -$black = imagecolorallocate($img, 0, 0, 0); +$red = imagecolorallocate($img, 255, 0, 0); +$green = imagecolorallocate($img, 0, 255, 0); +$blue = imagecolorallocate($img, 0, 0, 255); -// draw a black circle -imagearc($img, 100, 100, 150, 150, 0, 360, $black); +// draw the head +imagearc($img, 100, 100, 200, 200, 0, 360, $white); +// mouth +imagearc($img, 100, 100, 150, 150, 25, 155, $red); +// left and then the right eye +imagearc($img, 60, 75, 50, 50, 0, 360, $green); +imagearc($img, 140, 75, 50, 50, 0, 360, $blue); // output image in the browser header("Content-type: image/png"); @@ -125,6 +132,10 @@ imagedestroy($img); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagechar.xml b/reference/image/functions/imagechar.xml index b2159ebcef..0371631d54 100644 --- a/reference/image/functions/imagechar.xml +++ b/reference/image/functions/imagechar.xml @@ -1,5 +1,5 @@ - + imagechar @@ -97,6 +97,10 @@ imagepng($im); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagecharup.xml b/reference/image/functions/imagecharup.xml index 04463caabe..1875c999ae 100644 --- a/reference/image/functions/imagecharup.xml +++ b/reference/image/functions/imagecharup.xml @@ -1,5 +1,5 @@ - + imagecharup @@ -94,6 +94,10 @@ imagepng($im); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagecolorallocatealpha.xml b/reference/image/functions/imagecolorallocatealpha.xml index 7feb8b3cec..b472798293 100644 --- a/reference/image/functions/imagecolorallocatealpha.xml +++ b/reference/image/functions/imagecolorallocatealpha.xml @@ -1,5 +1,5 @@ - + imagecolorallocatealpha @@ -115,6 +115,10 @@ imagedestroy($image); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagecolorat.xml b/reference/image/functions/imagecolorat.xml index f199d161e7..a6f5ca299c 100644 --- a/reference/image/functions/imagecolorat.xml +++ b/reference/image/functions/imagecolorat.xml @@ -1,5 +1,5 @@ - + imagecolorat @@ -62,14 +62,22 @@ > 16) & 0xFF; $g = ($rgb >> 8) & 0xFF; $b = $rgb & 0xFF; ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagecopyresampled.xml b/reference/image/functions/imagecopyresampled.xml index b59a2de96f..43dd4e9513 100644 --- a/reference/image/functions/imagecopyresampled.xml +++ b/reference/image/functions/imagecopyresampled.xml @@ -1,5 +1,5 @@ - + imagecopyresampled @@ -162,6 +162,10 @@ imagejpeg($image_p, null, 100); ?> ]]> + &example.outputs.similar; + + + @@ -205,6 +209,10 @@ imagejpeg($image_p, null, 100); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagecopyresized.xml b/reference/image/functions/imagecopyresized.xml index fab054dc00..3fea2b3e8a 100644 --- a/reference/image/functions/imagecopyresized.xml +++ b/reference/image/functions/imagecopyresized.xml @@ -1,5 +1,5 @@ - + imagecopyresized @@ -162,6 +162,10 @@ imagejpeg($thumb); ?> ]]> + &example.outputs.similar; + + + The image will be output at half size, though better quality could be obtained using imagecopyresampled. diff --git a/reference/image/functions/imagecreate.xml b/reference/image/functions/imagecreate.xml index 34668ba8b0..b16d384a21 100644 --- a/reference/image/functions/imagecreate.xml +++ b/reference/image/functions/imagecreate.xml @@ -1,5 +1,5 @@ - + imagecreate @@ -60,9 +60,9 @@ ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagecreatefromgif.xml b/reference/image/functions/imagecreatefromgif.xml index 9c0227f264..0792db761f 100644 --- a/reference/image/functions/imagecreatefromgif.xml +++ b/reference/image/functions/imagecreatefromgif.xml @@ -1,5 +1,5 @@ - + imagecreatefromgif @@ -35,9 +35,16 @@ function LoadGif ($imgname) } return $im; } +header("Content-Type: image/gif"); +$img = LoadGif("bogus.image"); +imagegif($img); ?> ]]> + &example.outputs.similar; + + + &tip.fopen-wrapper; diff --git a/reference/image/functions/imagecreatefromjpeg.xml b/reference/image/functions/imagecreatefromjpeg.xml index 925b047592..9a3ed1f1bd 100644 --- a/reference/image/functions/imagecreatefromjpeg.xml +++ b/reference/image/functions/imagecreatefromjpeg.xml @@ -1,5 +1,5 @@ - + imagecreatefromjpeg @@ -38,9 +38,16 @@ function LoadJpeg($imgname) } return $im; } +header("Content-Type: image/jpeg"); +$img = LoadJpeg("bogus.image"); +imagejpeg($img); ?> ]]> + &example.outputs.similar; + + + &tip.fopen-wrapper; diff --git a/reference/image/functions/imagecreatefrompng.xml b/reference/image/functions/imagecreatefrompng.xml index b7f3401021..5e4c64aa1b 100644 --- a/reference/image/functions/imagecreatefrompng.xml +++ b/reference/image/functions/imagecreatefrompng.xml @@ -1,5 +1,5 @@ - + imagecreatefrompng @@ -38,9 +38,16 @@ function LoadPNG($imgname) } return $im; } +header("Content-Type: image/png"); +$img = LoadPNG("bogus.image"); +imagepng($img); ?> ]]> + &example.outputs.similar; + + + &tip.fopen-wrapper; diff --git a/reference/image/functions/imagecreatefromstring.xml b/reference/image/functions/imagecreatefromstring.xml index 578966bebd..b9124c2752 100644 --- a/reference/image/functions/imagecreatefromstring.xml +++ b/reference/image/functions/imagecreatefromstring.xml @@ -1,5 +1,5 @@ - + imagecreatefromstring @@ -66,6 +66,10 @@ else { ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagecreatetruecolor.xml b/reference/image/functions/imagecreatetruecolor.xml index 15664b8741..89e71ece11 100644 --- a/reference/image/functions/imagecreatetruecolor.xml +++ b/reference/image/functions/imagecreatetruecolor.xml @@ -1,5 +1,5 @@ - + imagecreatetruecolor @@ -65,7 +65,7 @@ ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imageellipse.xml b/reference/image/functions/imageellipse.xml index 205ab14b34..d8864aed4a 100644 --- a/reference/image/functions/imageellipse.xml +++ b/reference/image/functions/imageellipse.xml @@ -1,5 +1,5 @@ - + imageellipse @@ -103,6 +103,10 @@ imagepng($image); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagefill.xml b/reference/image/functions/imagefill.xml index efdedc5b12..1be9a9387f 100644 --- a/reference/image/functions/imagefill.xml +++ b/reference/image/functions/imagefill.xml @@ -1,5 +1,5 @@ - + imagefill @@ -80,6 +80,10 @@ imagedestroy($im); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagefilledarc.xml b/reference/image/functions/imagefilledarc.xml index 75cc756b6c..488ff808db 100644 --- a/reference/image/functions/imagefilledarc.xml +++ b/reference/image/functions/imagefilledarc.xml @@ -1,5 +1,5 @@ - + imagefilledarc @@ -160,6 +160,10 @@ imagedestroy($image); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagefilledellipse.xml b/reference/image/functions/imagefilledellipse.xml index 32e9eaa069..cd47af7e3f 100644 --- a/reference/image/functions/imagefilledellipse.xml +++ b/reference/image/functions/imagefilledellipse.xml @@ -1,5 +1,5 @@ - + imagefilledellipse @@ -104,6 +104,10 @@ imagepng($image); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagefilledpolygon.xml b/reference/image/functions/imagefilledpolygon.xml index 2514543048..c3aa1bd523 100644 --- a/reference/image/functions/imagefilledpolygon.xml +++ b/reference/image/functions/imagefilledpolygon.xml @@ -1,5 +1,5 @@ - + imagefilledpolygon @@ -94,6 +94,10 @@ imagedestroy($image); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagepolygon.xml b/reference/image/functions/imagepolygon.xml index fc233d343c..ca057ad4a2 100644 --- a/reference/image/functions/imagepolygon.xml +++ b/reference/image/functions/imagepolygon.xml @@ -1,5 +1,5 @@ - + imagepolygon @@ -92,6 +92,10 @@ imagepng($image); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagerotate.xml b/reference/image/functions/imagerotate.xml index 924e98ff85..4bb33bb116 100644 --- a/reference/image/functions/imagerotate.xml +++ b/reference/image/functions/imagerotate.xml @@ -1,5 +1,5 @@ - + imagerotate @@ -103,6 +103,7 @@ ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagesetstyle.xml b/reference/image/functions/imagesetstyle.xml index 2e4f4a9f6f..b3ccfcec9d 100644 --- a/reference/image/functions/imagesetstyle.xml +++ b/reference/image/functions/imagesetstyle.xml @@ -1,5 +1,5 @@ - + imagesetstyle @@ -77,6 +77,10 @@ imagedestroy($im); ?> ]]> + &example.outputs.similar; + + + diff --git a/reference/image/functions/imagestring.xml b/reference/image/functions/imagestring.xml index 87c48eeb30..26987bf245 100644 --- a/reference/image/functions/imagestring.xml +++ b/reference/image/functions/imagestring.xml @@ -1,5 +1,5 @@ - + imagestring @@ -92,6 +92,10 @@ imagepng($im); ?> ]]> + &example.outputs.similar; + + +