5

I am getting issue regarding Magento 2 Installation and still don't get any solution about it.

I am installing Magento 2 using docker-compose but I keep getting following warning:

[Progress: 419 / 833]
Module 'Magento_Theme':

In PatchApplier.php line 167:

Warning: call_user_func() expects parameter 1 to be a valid callback, function 'imagecreatefromjpeg' not found or invalid function name in /var/www/myshop/vendor/magento/framework/Image/Adapter/Gd2.php on line 72                                                                                                                      

Here is how I added GD support on Dockerfile (FROM php:7.2-fpm):

RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ --with-xpm-dir=/usr/include/ --enable-gd-jis-conv
RUN docker-php-ext-install -j$(nproc) gd  

Here is my current phpinfo() output related gd information:

enter image description here From the snapshot there is no JPEG support listed there.

Here is my OS information:

enter image description here

enter image description here

enter image description here

Any help regarding this will be really appreciated since I have been stuck on this for 2 days.

Thanks in advance.

2

1 Answer 1

1

I am using docker php-fpm, I destroyed the Container, removed all unused and unrelated dependencies from my Dockerfile then rebuild everything then everything seems works now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.