最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

post thumbnails - SVG Featured image not shown in twitter

programmeradmin2浏览0评论

I have a post with a featured image (size 736x212). The post url is this. I shared my post on twitter, but the tweet doesn't show the image (if you want to check click here). What could be the problem?

I have a post with a featured image (size 736x212). The post url is this. I shared my post on twitter, but the tweet doesn't show the image (if you want to check click here). What could be the problem?

Share Improve this question edited Sep 22, 2019 at 21:54 fuxia 107k38 gold badges255 silver badges459 bronze badges asked Dec 4, 2018 at 9:25 Federico TaschinFederico Taschin 1114 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

Twitter has some limitations upon file extensions. I see that you're passing on some variables within your meta tag.

https://developer.twitter/en/docs/tweets/optimize-with-cards/overview/markup.html

URL of image to use in the card. Images must be less than 5MB in size. JPG, PNG, WEBP and GIF formats are supported. Only the first frame of an animated GIF will be used. SVG is not supported.

Try removing the variables within the image url, it could possibly block twitter from thinking it's a valid image. You could also check the filesize of your image.

Checkout Wordpress plugin called SVG Feature Image on GitHub.

This plugin is written to convert the SVG featured images to a socially sharable thumbnail images on the fly via Facebook & Twitter.

This is a newly developed plugin & currently under source code review with Wordpress. Meanwhile checkout the project on GitHub.

It's completely opensource and free.

发布评论

评论列表(0)

  1. 暂无评论