Skip to content

Conversation

ahukkanen
Copy link
Contributor

The imageantialias is generally available after PHP 7.2.0. For versions before that, this check is needed.

The `imageantialias` is generally available after PHP 7.2.0. For
versions before that, this check is needed.
@ahukkanen
Copy link
Contributor Author

Could also be a good idea to add one CI environment which uses a PHP version below 7.2.0 and has been compiled without GD, in which case this function could be unavailable.

@ausi
Copy link
Collaborator

ausi commented Jul 6, 2019

For clarification to other reviewers: PHP can be configured to use the bundled GD version (--with-gd) or to use a custom one (--with-gd=DIR). If the bundled version is used the GD_BUNDLED constant is set to 1.

Before PHP 7.2 the imageantialias() function was only available if the bundled GD version was used.

@mlocati mlocati merged commit 029bef8 into php-imagine:develop Jul 8, 2019
@ahukkanen ahukkanen deleted the fix/imageantialias-undefined branch July 8, 2019 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants