Major v4.0.x release which is fundamentally an upgrade of the minimum PHP version required (7.4.x
or newer), the API remains basically the same, new possibility to load an image from a resource
or GdImage
input, two new getter methods for GImage along with other notable project improvements.
And as noted, the project resumes its maintenance after a long period.
Added
- Annotate methods that return the same class with
static
. - PHP
8.0
support. PR #35 - PHP
8.1
support. PR #37- Improve PHP
8.1
tests and CI - Fixes missing types casting for PHP
8.1
- Improve PHP
- Load an image from a
resource
(PHP 7.4) or\GdImage
(PHP8.x
) viaGImage->load($src)
method. PR #38 - New
GImage->isImageResource()
(PHP 7.4) andGImage->isImageGdImage()
(PHP8.x
) methods.
Deprecated
- PHP
7.3
or lower is deprecated. Now GImage requires PHP7.4.x
or8.x
along with the latest GD extension.
Changed
- Improve example files.
- GitHub Actions as a new CI for testing the library against PHP
7.4.x
,8.0.x
and8.1.x
. - Several documentation improvements.