#metadata

1 messages · Page 1 of 1 (latest)

hybrid mauve
#

kan nexjtjs metadata be webp or has to be jpg

wind jungleBOT
#

Hi @hybrid mauve. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Next.js supports various formats for metadata images such as Open Graph and Twitter images. According to the Next.js documentation (https://nextjs.org/docs/getting-started/project-structure#open-graph-and-twitter-images), these images can be in .jpg, .jpeg, .png, or .gif formats. There is no mention of .webp support for these metadata images.

However, it's important to note that these formats are for static files. Next.js also allows you to generate these images dynamically using .js, .ts, or .tsx files. This could potentially allow for more flexibility in the image formats used, but the specifics would depend on the implementation.

For more information, you can refer to the Metadata Files API Reference (https://nextjs.org/docs/app/api-reference/file-conventions/metadata) and the Dynamic Image Generation section (https://nextjs.org/docs/app/building-your-application/optimizing/metadata#dynamic-image-generation) in the Next.js documentation.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: