php -r "var_dump(function_exists('imageantialias'));" bool(false)

June 16, 2016 1.8k views
Nginx LEMP Linux Commands

php -r “vardump(functionexists(‘imageantialias’));”

I am fix (bool(true)

PHP Version
GD Support enabled
GD headers Version 2.1.1
GD library Version 2.1.1

i want have install ubuntu 14.04 Webserver Nignx

GD Support enabled
GD Version bundled (2.1.0 compatible)
FreeType Support enabled

1 Answer

Sorry to see that your question hasn’t received an answer yet. On recent versions of Ubuntu with PHP 7, imageantialias is available without having to install any libraries. If you are getting false with an older version of PHP, as in the function does not exist, make sure that the GD library is installed. Otherwise, post the output of php -i in a new question. This is the equivalent of running phpinfo(); but using the CLI php.ini and config files.

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!