Skip to content

v4.0.0

Latest
Compare
Choose a tag to compare
@joseluisq joseluisq released this 24 Oct 21:17
· 3 commits to master since this release
v4.0.0
f2158b3

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
  • Load an image from a resource (PHP 7.4) or \GdImage (PHP 8.x) via GImage->load($src) method. PR #38
  • New GImage->isImageResource() (PHP 7.4) and GImage->isImageGdImage() (PHP 8.x) methods.

Deprecated

  • PHP 7.3 or lower is deprecated. Now GImage requires PHP 7.4.x or 8.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 and 8.1.x.
  • Several documentation improvements.