OG Image
Answered
thomasschwinn posted this in #help-forum
I don't really find a documentation how to set the file format/header for the og image generation. I always get a png which gets quite big, but I'm sure I can return other formats as well. Can someone maybe help me setting the Image response header? thx
Answered by Anay-208
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image#generate-images-using-code-js-ts-tsx
There is a content-type opt here
There is a content-type opt here
3 Replies
@thomasschwinn I don't really find a documentation how to set the file format/header for the og image generation. I always get a png which gets quite big, but I'm sure I can return other formats as well. Can someone maybe help me setting the Image response header? thx
https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image#generate-images-using-code-js-ts-tsx
There is a content-type opt here
There is a content-type opt here
Answer
@Anay-208 https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image#generate-images-using-code-js-ts-tsx
There is a content-type opt here
oh, wow, was that always there? thank you very much, I did not see that
mark my message as a solution