|
|
|
@ -528,7 +528,8 @@ Class SiteController extends Controller {
@@ -528,7 +528,8 @@ Class SiteController extends Controller {
|
|
|
|
|
|
|
|
|
|
$imagick->scaleImage($width, $height, true); //生成缩略图,并自适应 |
|
|
|
|
$imagick->setImageFormat('jpeg'); |
|
|
|
|
$imagick->setImageCompressionQuality(90); |
|
|
|
|
$quality = !empty(FSC::$app['config']['smallImageQuality']) ? FSC::$app['config']['smallImageQuality'] : 90; |
|
|
|
|
$imagick->setImageCompressionQuality($quality); |
|
|
|
|
$img_data = $imagick->getImageBlob(); |
|
|
|
|
$imagick->clear(); |
|
|
|
|
|
|
|
|
|