php gd lib已安装但无法正常工作

On the localhost the library is working fine, when the function is called on production,php throws a fatal errer.

i checked the phpinfo() its there and it is enabled.

I tired to see if there is anything that i can add on the php.ini but i couldn't find any. The error is thrown when i call

gd_info();

Is there anything that i can add on the php.ini file that can solve this problem, or is there another library for gd?

The error am getting is the following

Fatal error: Call to undefined function gd_info(

I had exactly the same problem

although I had installed it using apt-get install php7.0-gd that function was undefined, so I inspected php.ini file in /etc/php/7.0/apache2/php.ini

turned out that the line for gd extension was commented!

so I removed semicolon before the line and it was working!

so crazy wasted an half an hour of mine :D