EC-CUBE / EC-CUBE/ec-cube

docker環境使用時 画像処理時にErrorになる

Open
#4,493 0 comments 4 reactions 0 assignees View on GitHub
question
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.