mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 23:16:52 +00:00
@@ -110,6 +110,8 @@ const compressImage = (image, width, quality = 50, fmt = 'webp') => {
|
|||||||
return image
|
return image
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (image.includes(".svg")) return image
|
||||||
|
|
||||||
if (!width || width === 0) {
|
if (!width || width === 0) {
|
||||||
width = siteConfig('IMAGE_COMPRESS_WIDTH')
|
width = siteConfig('IMAGE_COMPRESS_WIDTH')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user