Skip to content
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

[blog] Fix social cards #34160

Merged
merged 1 commit into from Aug 31, 2022

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Aug 31, 2022

I saw this in my Twitter thread:

Screenshot 2022-08-31 at 20 49 52

#33926. So I had a look at how I could fix the root problem. Turns out it's because of the instructions in https://www.notion.so/mui-org/Blog-247ec2bff5fa46e799ef06a693c94917#8d7abbf2117b4f28a671adc8bff4b13b are wrong. I have fixed the content in Notion to not lead toward card.jpg but card.png.

? `https://mui.com/static${router.pathname}/card.png`

You might also wonder, why png and not jpg? Because see the same image exported in the two different formats, after compression:

Screenshot 2022-08-31 at 20 52 21

a png is x3.0 smaller.

@mui-bot
Copy link

mui-bot commented Aug 31, 2022

No bundle size changes

Generated by 🚫 dangerJS against c5a400a

Copy link
Member

@samuelsycamore samuelsycamore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I noticed this too and was starting to wonder if it was an issue with FeedHive. I'm glad to see it resolved!

@oliviertassinari oliviertassinari merged commit e4a7343 into mui:master Aug 31, 2022
@oliviertassinari oliviertassinari deleted the fix-social-images branch August 31, 2022 20:15
@siriwatknp
Copy link
Member

@oliviertassinari Thanks! I'm about to fix this issue 🤣

daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blog bug 🐛 Something doesn't work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants