久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區

標題: php8.1下Imagick::extentImage() expects exactly 4 arguments, 2 given [打印本頁]

作者: xinhai168    時間: 2023-2-20 10:30
標題: php8.1下Imagick::extentImage() expects exactly 4 arguments, 2 given

php7.2下正常,php8.1下出現
Imagick::extentImage() expects exactly 4 arguments, 2 given


ource/class/class_image.php422Imagick->extentImage()


  1. $im->extentImage($this->param['thumbwidth'], $this->param['thumbheight']);
復制代碼
好像還缺少兩個參數

作者: 1314學習網    時間: 2023-2-20 11:46
source\class\class_image.php
找到
  1. $im->extentImage($this->param['thumbwidth'], $this->param['thumbheight']);
復制代碼
改為
  1. $im->extentImage($this->param['thumbwidth'], $this->param['thumbheight'], 0, 0);
復制代碼
試試,有兩處
作者: xinhai168    時間: 2023-2-20 14:15
1314學習網 發表于 2023-2-20 11:46
source\class\class_image.php
找到 改為試試,有兩處

謝謝,圖片處理庫類型我改為GD了。 ImageMagick啟用后有時還有別的錯誤,不啟用他好了。




歡迎光臨 Discuz! 官方交流社區 (http://www.9999xn.com/) Powered by Discuz! W1.0