Author Topic: GDlib  (Read 2708 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
GDlib
« on: December 21, 2015, 07:10:22 AM »
Hi all,

I am using php 7 and trying to install magento 2.
During the install i get this:
[ERROR] exception 'Exception' with message 'Warning: call_user_func() expects parameter 1 to be a valid callback, function 'imagecreatefromjpeg' not found or invalid function name in /home/magento2/public_html/vendor/magento/framework/Image/Adapter/Gd2.php on line 63' in /home/magento2/public_html/vendor/magento/framework/App/ErrorHandler.php:61

I have the gdlib and imagemagick installed, but i guess i have to add them when compiling php 7?

Offline
***
Re: GDlib
« Reply #1 on: December 23, 2015, 08:06:01 AM »
Hi

Did you restart httpd after installing GD and ImageMagick ?

Offline
*
Re: GDlib
« Reply #2 on: December 23, 2015, 01:31:59 PM »
Yep, totally done that.
Having the same issue btw when installing TYPO3:

Code: [Select]
PHP GD library jpg support missing
GD must be compiled with jpg support. This is essential for TYPO3 CMS to work properly.

Code: [Select]
PHP GD library freetype support missing
Some core functionality and extension rely on the GD to render fonts on images. This support is missing in your environment. Install it.

Code: [Select]
PHP GD library freetype2 support missing
The core relies on GD library compiled into PHP with freetype2 support. This is missing on your system. Please install it.

Offline
**
Re: GDlib
« Reply #3 on: February 20, 2017, 04:34:55 PM »
add these lines when you recompile your php:

--with-jpeg-dir \
--enable-gd-native-ttf \
--with-freetype-dir \