Commit graph

596 commits

Author SHA1 Message Date
Christoph Michael Becker
591804b0ae Fix example
Alphablending affects drawing operations, so it has to be disabled before
doing these.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346690 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-03 16:02:26 +00:00
Christoph Michael Becker
8e9afcb659 Improve imagesavealpha() docs
Particularly, we remove the grossly out-dated paragraph regarding missing
alpha support on some browsers (IE 6/7 is certainly gone, nowadays).

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346689 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-03 15:27:32 +00:00
Christoph Michael Becker
28a1a6348c Use available entity ref instead of hard-coded literal
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346625 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-22 00:32:00 +00:00
Christoph Michael Becker
3156ec6f1a imageloadfont() returns int, not resource
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346407 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-20 18:02:14 +00:00
Christoph Michael Becker
a435a5f430 Emphasize and clarify tile and brush issue
Cf. <https://bugs.php.net/bug.php?id=77311>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346379 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-18 16:05:00 +00:00
Christoph Michael Becker
d52b1d218a Integrate user note 123426
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346311 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-12 18:23:22 +00:00
Christoph Michael Becker
e20c1d1997 Integrate user note 121798
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346310 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-12 18:09:21 +00:00
Christoph Michael Becker
80b8e5fbd9 Default value of $mode parameter of imagecropauto() is changed as of PHP 7.4.0
Cf. <https://github.com/php/php-src/pull/3679>-

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346308 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-12 17:13:40 +00:00
Christoph Michael Becker
905ecfca12 imageautocrop() returns a copy of the image if nothing is to be cropped
Neither bundled nor system libgd cause a FALSE return value in this case.
Since the other differences are eliminated as of PHP 7.4.0, and are 
already prominently documented, we remove the respective note.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346143 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-01 22:40:24 +00:00
Christoph Michael Becker
836c8cf1c4 imageautocrop() bahvior of bundled libgd has been synced with upstream
Cf. <https://github.com/php/php-src/pull/3681>
and <https://github.com/php/php-src/pull/3682>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346142 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-01 22:21:21 +00:00
Christoph Michael Becker
cbf6bba350 Improve optional parameter docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346101 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-27 16:33:35 +00:00
Christoph Michael Becker
3f323ecf21 Document differences between bundled and system libgd
See also <https://github.com/php/php-src/pull/3681>.

Together with r346037 this also integrates user note 123362.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346039 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-24 15:49:43 +00:00
Christoph Michael Becker
5ccf746244 Clarify meaning of $mode default value
See also <https://github.com/php/php-src/pull/3679>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346037 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-23 16:09:08 +00:00
Christoph Michael Becker
afff1e9feb Document changed configure option
Cf. <https://github.com/php/php-src/pull/3632>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345963 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-07 13:32:36 +00:00
Christoph Michael Becker
c275d0e5ab Document image2wbmp() deprecation
Cf. <https://wiki.php.net/rfc/image2wbmp>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345114 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-10 10:45:11 +00:00
Christoph Michael Becker
92e25e152b Document *actual* behavior
See <https://wiki.php.net/rfc/image2wbmp>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345112 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-09 21:13:30 +00:00
Christoph Michael Becker
f8dca7cec6 Add mutual reference
Inspired by a patch provided by Vladimir S.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345053 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-25 14:49:35 +00:00
Christoph Michael Becker
f543b07b0a Fix bug #76235: imagejpeg does not always return false on error
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344720 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-18 16:26:00 +00:00
Christoph Michael Becker
f6b4529602 $imageinfo only supports JFIF
See bug #27591.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344612 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-03 13:14:59 +00:00
Christoph Michael Becker
1ebd03cac1 Document that imageft*() are extended variants of imagettf*()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344605 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-01 15:00:28 +00:00
Christoph Michael Becker
081558397b imagecolorat() may also return FALSE
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344604 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-01 14:16:57 +00:00
Christoph Michael Becker
653e79693a Move important note upward to make it more prominent
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344603 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-01 13:59:27 +00:00
Christoph Michael Becker
b84cc8e4c5 DRY
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344602 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-01 13:53:02 +00:00
Christoph Michael Becker
6a38f33d08 Fix order of sections
The changelog is supposed to come before the examples.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344601 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-01 13:34:19 +00:00
Christoph Michael Becker
134d541212 GD 1 is long gone
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344599 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-31 21:27:44 +00:00
Christoph Michael Becker
ad3d256ffd Move removal warning to <refsynopsisdiv> analogous to the other imageps*() functions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344597 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-31 13:12:07 +00:00
Christoph Michael Becker
8cfd23405f Yet more DRY
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344596 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-31 12:21:02 +00:00
Christoph Michael Becker
54c346839d Fix build and more DRY
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344595 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-31 12:19:53 +00:00
Christoph Michael Becker
1faec0faeb DRY
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344594 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-31 11:57:01 +00:00
Christoph Michael Becker
5c0c87e3e9 Fix return value section
`imagedashedline()` fails, if an invalid resource is passed.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344592 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-30 21:39:28 +00:00
Christoph Michael Becker
2d381a03b8 Use already defined language snippet
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344588 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-29 17:15:20 +00:00
Christoph Michael Becker
3b090cccc2 Fix typo
Patch provided by Jorrit Schippers.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344561 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-25 13:51:26 +00:00
Christoph Michael Becker
6e2531fee2 Fix XML ID
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344334 c90b9560-bf6c-de11-be94-00142212c4b1
2018-02-23 09:53:34 +00:00
Christoph Michael Becker
f3bdf92d3e Don't try to imagedestroy() FALSE
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344284 c90b9560-bf6c-de11-be94-00142212c4b1
2018-02-18 19:09:02 +00:00
Pieter Hordijk
c2b0f6ace4 make the reader aware that imagecrop() returns a new image and therefore 2 image resources need to be freed after using it.
-- 
Provided by anonymous 82013 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344273 c90b9560-bf6c-de11-be94-00142212c4b1
2018-02-16 15:16:47 +00:00
Jakub Vrana
3df65c988d Add new INI entries
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344076 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 21:38:11 +00:00
Jakub Vrana
7c50ead1ed Fix versions based on parsed php-src
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344068 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 15:23:17 +00:00
Jakub Vrana
34e7abe2be Unify version format
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344055 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 14:33:03 +00:00
Jakub Vrana
3e9734391f Add new functions to versions.xml
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344041 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 13:39:15 +00:00
Jakub Vrana
fa994a739c Fix function signatures
Some of these probably deserve an entry in changelog, please add it if you have energy.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343898 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 19:03:56 +00:00
Jakub Vrana
dd07341fae Remove trailing fullstop in <refpurpose>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343888 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 15:34:22 +00:00
Christoph Michael Becker
d0bf71f15b Add link to "Supported Protocols and Wrappers"
That is supposed to be sufficient to remove user note 102902.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343854 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-22 14:38:59 +00:00
Christoph Michael Becker
099a58be24 Fix bug #75788: getimagesize() for GIF
We clarify the details regarding the image size reported by
getimagesize() for GIFs vs. the actual size of images created by
imagecreatefromgif().

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343841 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-15 13:58:49 +00:00
Christoph Michael Becker
bb612d4a31 Fix #70952: GD massive memory consumption
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343821 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-12 16:21:05 +00:00
Chris Wright
db6db42bed Document 2nd arg for imagebmp() as optional
Fixes #75531

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343414 c90b9560-bf6c-de11-be94-00142212c4b1
2017-11-15 23:28:23 +00:00
Christoph Michael Becker
d47f8424f1 Fix #75438: 2nd parameter of imagewebp() is optional
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343295 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-25 12:08:02 +00:00
Christoph Michael Becker
734a21605c Fix erroneous description of gd.jpeg_ignore_warning
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343231 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-11 14:13:37 +00:00
Christoph Michael Becker
040bb7d857 Sync $fontfile description of imagettfbbox() with imagettftext()
Since both parameters are treated identically, the descriptions should
match. To avoid duplication we're introducing an entity.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342949 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-27 18:59:31 +00:00
Christoph Michael Becker
e24b13ad4f Improve IMG_FILTER_GRAYSCALE documentation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342945 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-27 12:45:43 +00:00
Christoph Michael Becker
0c657886f3 Fix typo
Patch provided by anon user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342311 c90b9560-bf6c-de11-be94-00142212c4b1
2017-04-11 14:45:20 +00:00