We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.svg
meta.image
1 parent 3125547 commit 6e1edc1Copy full SHA for 6e1edc1
packages/astro/src/default/components/MetaTags.astro
@@ -18,6 +18,10 @@ if (imageUrl?.startsWith('/') || imageUrl?.startsWith('.')) {
18
}
19
20
imageUrl ??= readLogoFile('logo', true);
21
+if (imageUrl?.endsWith('.svg')) {
22
+ console.warn(`Using a SVG open graph image "${imageUrl}". This is not supported by most social platforms.
23
+ You should rather set "meta.image" to a raster image (PNG, WEBP).`);
24
+}
25
---
26
27
<meta charset="UTF-8" />
0 commit comments