Open jessleenyc opened 5 years ago
I spoke with @healeycodes who said it was cool to share a bit of info here...
Steps to reproduce the behavior
Expected behavior Article cover images should always appear centered when being transformed into social card images.
Screenshots
Here's a picture of the left-aligned social image:
Here's another picture of a separate post by the same author with a similar cover image which centered correctly:
This post was originally left-aligned too - https://dev.to/healeycodes/my-experience-with-pair-programming-4c0a but I used a manual override to fix it.
Note: I don't think it necessarily only happens to this author; but, these are known examples. If I see it happen to another author, I'll report back.
Just found another example of this here:
Have the same happening to my articles. They are aligned to right side instead of center.
I guess there are two options to that:
The second one would probably much easier to implement.
Another (possibly easier) option is to allow user to upload twitter card image. The aspect ratio that you use for headers on dev.to is different than most of the social media images to that is why it is appearing odd.
Hello! This also affects my posts. Here an example on Twitter
And on LinkedIn: I second what brentonhouse said: uploading social media cards in our dev.to publications would probably solve this.
Seems like all the social media platforms (Twitter, Facebook, LinkedIn) use 19:10 only dev.to uses 12:5
So maybe dev.to should allow 19:10 for future posts?
Having the same issue on one of my recent posts.
Personally I would love to see support for additional meta tags in the front matter. That way you could actually have a different cover image and social image. Would be nice to see support for:
og:image
twitter:image
twitter:card
(defaults to summary_large_image
, but would be nice to specify)
Having the same issue on my post published today (https://dev.to/viclafouch/build-a-complete-modal-component-with-react-hooks-2fk8)
Update: I found a social media manager (e-clincher) that allows me to extract images from a post, stuff I post with that manager doesn't fit 100% either, but at least its centered now.
I can also confirm the issue happening on Discord, Slack, and LinkedIn preview. For Twitter, I am usually creating my own separate image to avoid the issue.
For example, this is how my latest post on DEV renders in these three places:
Discord preview
Slack preview
LinkedIn preview
Anything we can do here? This is rather irritating.
@jessleenyc any thoughts on this feature request? Do you think this should be labelled as a potential RFC?
Forem team needs to investigate:
Since this issue has gone stale I am going to close it. If anyone would like to still implement this feature let me know and we can turn this issue into a discussion
I wanted to reopen this one as it's something I hear occasionally reported.
Describe the bug Sometimes, twitter card images aren't centered properly when the social card unfurls. This is likely happening on Twitter's end but we can also fix this if we crop the images ourselves through cloudinary.