docker環境使用時 画像処理時にErrorになる
- Dominant language
- PHP
- Stars
- 788
- Forks
- 719
- Avg merge
- 4d 4h
- Merged PRs (30d)
- 39
Description
## 概要(Overview)
画像リサイズ処理時に以下Errorを出力
`Attempted to call function "imagecreatefromjpeg" `
システム情報を確認したところ
JPEG Supportが設定されていませんでした。
Dockerfileの既存の処理を以下に変更する事でJPEG Supportがenabledになることを確認しました。
`RUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) zip gd mysqli pdo_mysql opcache intl pgsql pdo_pgsql \
;`
以下が追記で記述した内容です。
` docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ `
## 関連情報 (Ref)
https://laracasts.com/discuss/channels/general-discussion/under-docker-error-call-to-undefined-function-interventionimagegdimagecreatefromjpeg?page=1
Contributor guide
Assessment
This issue has not been assessed yet.