Merge pull request #2518 from flt6/dev

Do not compress svg image
This commit is contained in:
tangly1024
2024-06-24 13:53:24 +08:00
committed by GitHub

View File

@@ -110,6 +110,8 @@ const compressImage = (image, width, quality = 50, fmt = 'webp') => {
return image
}
if (image.includes(".svg")) return image
if (!width || width === 0) {
width = siteConfig('IMAGE_COMPRESS_WIDTH')
}