3

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.

migrated from stackoverflow.com Apr 11 at 3:36

This question came from our site for professional and enthusiast programmers.

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, privacy policy and cookie policy

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