diff --git a/lib/notion/mapImage.js b/lib/notion/mapImage.js index 491632bc..5bb1e9b1 100644 --- a/lib/notion/mapImage.js +++ b/lib/notion/mapImage.js @@ -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') }