-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Low quality image in Whats-App link preview #356
Comments
It could be the og:image meta not having image sizes? I set width and height in pwa: {
meta: {
ogImage: {
path: '/cover.jpg',
width: 1200,
height: 600,
type: 'image/jpg',
},
},
}, |
Does @shadow81627 fixes your issue @FelixRe0 ? |
True https://pwa.nuxtjs.org/ is missing these. width: 1200, |
The stack overflow thread @FelixRe0 linked has a reply suggesting to supply multiple og:images of different sizes. https://stackoverflow.com/a/61078968 <meta property="og:image" content="https://www.link.com/facebook.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image" content="https://www.link.com/whatsapp.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="400" /> Which looks like is supported by the open graph spec. https://ogp.me/#array The facebook share docs recommend supply a 1:1 ratio image for some share types: https://developers.facebook.com/docs/sharing/best-practices#images Does the Nuxt PWA module support multiple og images? @atinux I also noticed in the facebook share debugger that the nuxt PWA module docs preview image has a duplicate / in the url eg. |
From what I see, it only support one I think this would be an improvement to support an array value, maybe @pi0 has some ideas about it? About the preview, nice catch, it will be fixed right inside the docs theme: nuxt/content#574 |
PR welcome to support BTW goal of this module is to add as much as possible without configuration. Additional |
#380 (comment) => I'm not sure why additional ogImages are not merged into the head even through they have an unique hid. Suggestions welcome. |
The Whats-App preview image is very low res.
Steps to reproduce:
Current:

copy https://pwa.nuxtjs.org/ into Whats-App
Expected:

copy i.e. https://stackoverflow.com/ into Whats-App
I could not figure out what the issue is. Recommendations (https://stackoverflow.com/questions/19778620/provide-an-image-for-whatsapp-link-sharing) seem to be followed.
The text was updated successfully, but these errors were encountered: