blackbirdchess-docker-dev/php-worker
許益銘 7abbfd3142
Solved undefined function imagecreatefromjpeg
[Solved] `Call to undefined function Intervention\Image\Gd\imagecreatefromjpeg()`

[PHP 7.4 Changelog](https://www.php.net/manual/en/migration74.other-changes.php) in GD section

we can run docker-php-ext-configure command to configure our gd with JPEG support. 
we don't need to provide flag to enable PNG.

```
$ docker exec -it laradock_php-worker_1 php -r 'print_r(gd_info());'
Array
(
    [GD Version] => bundled (2.1.0 compatible)
    [FreeType Support] => 1
    [FreeType Linkage] => with freetype
    [GIF Read Support] => 1
    [GIF Create Support] => 1
    [JPEG Support] => 1
    [PNG Support] => 1
    [WBMP Support] => 1
    [XPM Support] => 
    [XBM Support] => 1
    [WebP Support] => 
    [BMP Support] => 1
    [TGA Read Support] => 1
    [JIS-mapped Japanese Font Support] => 
)
```
2022-05-06 23:40:14 +08:00
..
supervisord.d The daemon config is deprecated 2021-03-29 17:12:04 +02:00
Dockerfile Solved undefined function imagecreatefromjpeg 2022-05-06 23:40:14 +08:00
supervisord.conf [feature] support for php worker hot load 2018-03-30 14:30:49 +08:00