答案 0 :(得分:0)
您的GD缺少JPEG支持。如果要在docker env中安装PHP,则需要安装libjpeg-dev,libfreetype6-dev和
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
如果在任何托管环境中使用PHP,请与您的托管服务提供商联系。我的样子
gd
GD Support => enabled
GD Version => bundled (2.1.0 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.6.3
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 6b
PNG Support => enabled
libPNG Version => 1.6.28
WBMP Support => enabled
XBM Support => enabled
答案 1 :(得分:0)
使用
RUN docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-freetype=/usr/include/
使用php 7.4