mirror of
https://github.com/lsky-org/lsky-pro.git
synced 2025-04-03 23:31:50 +08:00
fix(水印): 添加水印后编码图片时漏掉了保存质量参数 (#856)
Co-authored-by: zhendery <zhendery@qq.com>
This commit is contained in:
parent
effe173d9c
commit
011b291e05
@ -167,7 +167,8 @@ class Controller extends BaseController
|
||||
$configs->get('mode', Mode::Overlay) == Mode::Dynamic &&
|
||||
! in_array($image->extension, ['ico', 'gif', 'svg'])
|
||||
) {
|
||||
$contents = $service->stickWatermark($contents, $configs)->encode()->getEncoded();
|
||||
$quality = $image->group?->configs->get(GroupConfigKey::ImageSaveQuality, 75);
|
||||
$contents = $service->stickWatermark($contents, $configs)->encode($image->extension, $quality)->getEncoded();
|
||||
}
|
||||
$cacheTtl = (int)$image->group?->configs->get(GroupConfigKey::ImageCacheTtl, 0);
|
||||
// 是否启用了缓存
|
||||
|
Loading…
x
Reference in New Issue
Block a user