Commit b7e6700
fix(pdf): ext-gd を必須から推奨へ移す
GD を使うのは FPDF の GIF/WebP 解析だけで, コアの src/ は GD 関数を 1 つも
呼んでいない。既定のロゴは PNG で, PNG/JPEG の解析に GD は要らないため,
必須にすると GD の無い環境をインストール時点で弾いてしまう。
- composer.json の require から ext-gd を外す(lock は content-hash と
platform が元へ戻るだけ)
- InstallController の必須モジュールから推奨モジュールへ移す
- GIF は FPDF の _parsegif が imagecreatefromgif を呼び, 無いと Error で
PDF 全体が落ちるため, GD 不在時は解析不能な形式と同じくロゴを省いて出力する
getimagesize() は ext-standard の関数で GD が無くても使えるため, 形式判定は
そのまま。
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 9f06e47 commit b7e6700
4 files changed
Lines changed: 7 additions & 6 deletions
File tree
- src/Eccube
- Controller/Install
- Service/Pdf
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
486 | 488 | | |
487 | 489 | | |
488 | 490 | | |
489 | | - | |
| 491 | + | |
490 | 492 | | |
491 | 493 | | |
492 | 494 | | |
| |||
0 commit comments