All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
4.0.0 - 2022-10-24
This major release is fundamentally an upgrade of the minimum PHP version required (7.4.x
or newer), API remains basically the same, new posibility to load an image from a resource
or GdImage
input, two new small getter methods for GImage along with other notable project improvements.
And as noted, the project resumes its maintenance after a long period.
- Annotate methods that return same class via return
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.
- PHP
7.3
or lower is deprecated. Now GImage requires PHP7.4.x
or8.x
along with a latest GD extension.
- 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.
3.0.6 - 2018-04-26
isImageString
method. (PR #29)
$url
is undefined in loadImageFromResource method. (PR #30 by @franklee0902)Utils::isJPGResource
andUtils::isPNGResource
method require a string parameter. (PR #30 by @franklee0902)
3.0.5 - 2018-04-24
- Load an image resource directly. (Issue #29)
3.0.4 - 2017-12-23
3.0.3 - 2017-10-07
- Image: Added
render()
method can render the image in-memory and return the resource. (REF 02c5480) - Image: Added
render()
example about atexamples/render.php
- Text: Default value in
setContent($str = '')
function.
- Fixed issue #20.
- Doc comments in classes.
3.0.2 - 2017-04-30
- Image: Added the
Image::addOpacityFilter()
method with protected visiblity.
- Remove unused imports. (PR #16 by @matiit)
- Simplify importing Image properties in the
Image::from()
method. (PR #14 by @matiit)
- Figure: Fixes for add correctly the opacity filter in rectangles and ellipses. (Issue #15)
- Image: Render fixes for add correctly PNG's opacity.
- Utils: Fixed the
Utils::fixPNGOpacity()
method.
3.0.1 - 2017-04-14
Utils::fixPNGOpacity()
function that fix the opacity value between0
and1
for PNG alpha value.
setOpacity
(Figure
,Image
andText
classes) method now support values from0
to1
only.
<?php
// Set opacity to 50%
$figure->setOpacity(0.5)
setOpacity
now works if it loads some JPEG image and then saves it as PNG.- Fixed the opacity tests.
- Fixed the examples for opacity support.
- Some unnecessary functions for figure class.
setOpacity
doesn't support values from 0 to 100.
3.0.0 - 2017-02-16
- Feature:
isEllipse()
method support inFigure
for create ellipses. - Feature:
isRectangle()
method support inFigure
for create rectangles. CHANGELOG.md
file.
Figure
elements arePNG
by default.- Support for
PHP >= 7.0.x
only. - Update PHPUnit 6.0.
- Update test suite.
- Update README.md.
- Update LICENSE.md.
- Preserve
composer.lock
files. - Codebase with doc-comments.
- Codebase more standard:
phpcs ./src --standard=PSR2
andphpcbf -w ./src --standard=PSR2
- Better support for
Figure
elements with opacity. (0 to 127) - Better support for
$image->load(..)
method when load image from path or URL.
- Guzzle dependency removed.
- GImage is no longer supported on
PHP <= 5.5
2.0.1 - 2016-10-20
- Codebase PSR-2 standard.
- Minor travis fixes.
2.0.0 - 2016-09-29
- Codebase with new syntax and namespaces.
- Codebase are now namespaced (
\GImage
). - Sources clases was renamed to
Image
,Figure
,Text
,Canvas
andUtils
.
- Make file tests.
- Travis with PHP
7.0
and7.1
. - Support for
PHP >= 5.5
- Cleanup some files.
- GImage is no longer supported on
PHP <= 5.3
1.5.2 - 2016-07-20
- Composer suggest package.
- Examples updated.
1.5.1 - 2016-01-12
- Support line-height for
GText
class. Example:
<?php
$text = new GText('Lorem ipsum');
$text->setLineHeight(1.2);
- Composer support.
- API docs.
- Composer badges.
1.5.0 - 2015-11-15
- Initial commit.
- PHP
5.3
support.