调整封面图默认清晰度

This commit is contained in:
tangly1024.com
2023-10-19 15:59:28 +08:00
parent f5f1114b60
commit 0bd9d71f6e

View File

@@ -6,7 +6,7 @@ import BLOG from '@/blog.config'
* 2. UnPlash 图片可以通过api q=50 控制压缩质量 width=400 控制图片尺寸
* @param {*} image
*/
const compressImage = (image, width = 400, quality = 50, fmt = 'webp') => {
const compressImage = (image, width = 800, quality = 50, fmt = 'webp') => {
if (!image) {
return null
}