Never compress svg image

This commit is contained in:
flt6
2024-06-20 09:59:09 +08:00
parent 96d5e2ebee
commit b69799d75f

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')
}