OpenGraph images get chopped off in Google Chat
Created by: sqs
Google Chat is a popular chat program. Our OpenGraph image previews get chopped off in Google Chat.
Repro:
- Open Google Chat (https://chat.google.com)
- Open a conversation with anyone
- Paste a URL such as https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/schema/schema.go?L17-23
Expected: the image is not cut off
Actual: the image's sides are cut off, see screenshot:
Note that GitHub's OpenGraph previews do not seem to have the same problem. The images are cut off, but the OpenGraph preview puts the text and important info within the area still visible after the cropping. I don't know if this is just luck, or if GitHub is following rough guidelines for OpenGraph image cropping/visible area.