Description of issue: On certain pages of my website, the card validator returns successfully, but the image isn’t displayed. I followed all the steps in the pinned thread and the troubleshooting guide:
- all the requested tags are present
- my web server isn’t blocking Twitterbot, nor is my robots.txt
- my webpage is static, the tags display when using
curl
- the picture is a 1140x570 PNG, much smaller than 5MB
- the picture is linked in a tag with an absolute URL, beginning with https, on the same server
URL affected (must be public): https://desfontain.es/privacy/partial-knowledge.html
The card validator says “Card loaded successfully” but no picture is shown.
Weirdly enough, other pages on my website that use the exact same structure have no problem displaying pictures in cards, for example https://desfontain.es/privacy/real-world-differential-privacy.html.
Troubleshooting steps attempted [note that we will not prioritise posts unless there is evidence of following the troubleshooting guides]: Yes (see above)
The only thing that jumps out at me here is the image proportions / ratio between the two pages you’ve highlighted. Summary Large Image cards expect an image aspect ratio of 2:1. Weirdly though, it looks like the one that is not working does have that proportion. I’m not sure what is happening here, but in principle it could be a matter of waiting for the crawler to refresh the cache in ~7 days.
3 Likes
Thanks a lot Andy, this worked. For future reference, does the crawler run on its own (and will pick up stuff I upload without action on my part)? Or does it just run on-demand, when posting a tweet or validating a card?
IIRC I initially tried to validate the Twitter card before there was an image, noticed the problem, and added the image afterwards. If this means that I can’t post/validate this before 7 days, that’s not ideal, so I was wondering whether there was a better way.
system
Closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.