JPEGファイルの場合、GDがうまく動作しない事があった。
設定が足りないようだ。
設定が足りないと以下のようなエラーになる
Call to undefined function Intervention\Image\Gd\imagecreatefromjpeg()Call to undefined function Intervention\Image\Gd\imagecreatefromjpeg()
GDのインストールコマンドの前に以下を記述した。docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
これを追加しないとうまくインストールできない模様。
404 Not Found - Qiita - Qiita
コメント