Comparing your phpinfo () output with mine, I found that although GD is active, FreeType is missing from your PHP installation. The php docs on imagettfbbox () say that "this function requires both the GD library and the FreeType library."
Here is the relevant section of my phpinfo ():
gd GD Support enabled GD Version bundled (2.1.0 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.5.3 GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 8 PNG Support enabled libPNG Version 1.6.13 WBMP Support enabled XBM Support enabled
In the Configure Command block at the beginning of phpinfo, freetype should also be specified:
'./configure' '--prefix = / usr / local / Cellar / php55 / 5.5.18' '--localstatedir = / usr / local / var' '--sysconfdir = / usr / local / etc / php / 5.5 '' --with-config-file-path = / usr / local / etc / php / 5.5 '' --with-config-file-scan-dir = / usr / local / etc / php / 5.5 / conf.d '' --with-iconv-dir = / usr '' --enable-dba '' --with-ndbm = / usr '' --enable-exif '' --enable-intl '' - enable-soap ' '--enable-wddx' '--enable-ftp' '--enable-sockets'' --enable-zip '' --enable-shmop '' --enable-sysvsem '' --enable -sysvshm '' --enable-sysvmsg '' --enable-mbstring '' --enable-mbregex '' --enable-bcmath '' --enable-calendar '' --with-zlib = / usr / local / opt / zlib ' '--with-ldap' '--with-ldap-sasl = / usr' '--with-xmlrpc' '--with-kerberos = / usr' '--with-gd' '- enable-gd-native -ttf ' ' - with-freetype-dir = / usr / local / opt / freetype ' ' --with-icu-dir = / usr / local / opt / icu4c '' --with-jpeg-dir = / usr / local / opt / jpeg '' --with-png-dir = / usr / local / opt / libpng '' --with-gettext = / usr / local / opt / gettext '' --with-libedit '' - with-unixODBC = / usr / loc al / opt / unixodbc '' --with-pdo-od bc = unixODBC, / usr / local / opt / unixodbc '' --mandir = / usr / local / Cellar / php55 / 5.5.18 / share / man '' --with-mhash '' --with-curl '' --with-snmp = / usr '' --with-bz2 = / usr '' --disable-debug '' --with-openssl = / usr ' '--with-xsl = / usr' '- with -apxs2 = / usr / sbin / apxs'' --libexecdir = / usr / local / Cellar / php55 / 5.5.18 / libexec '' --with-mysql- sock = / tmp / mysql.sock '' --with -mysqli = mysqlnd '' --with-mysql = mysqlnd '' --with-pdo-mysql = mysqlnd '' --enable-pcntl '' --enable- zend-signals '' --enable-dtrace '' - -enable-opcache
POSSIBLE SOLUTION
From the comments on my instructions for installing full PHP on OSX Yosemite, I know that you installed PHP using the Homebrew package manager. So you can try this to solve your problem:
brew install freetype
Jpsy Apr 02 '15 at 6:45 2015-04-02 06:45
source share