Skip to content

Commit b39b47b

Browse files
authored
Merge pull request tangly1024#2518 from flt6/dev
Do not compress svg image
2 parents bce5d4e + 3a9b9ce commit b39b47b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/notion/mapImage.js

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ const compressImage = (image, width, quality = 50, fmt = 'webp') => {
110110
return image
111111
}
112112

113+
if (image.includes(".svg")) return image
114+
113115
if (!width || width === 0) {
114116
width = siteConfig('IMAGE_COMPRESS_WIDTH')
115117
}

0 commit comments

Comments
 (0)