Image in Twitter cards not showing


#1

Hello

I’m trying to make a twiter card to work with an summary_large_image type but unfortunatly, image is not showing.
I have checked the robots.txt, and the png (with pngcheck) but I can’t make it to work.
Can you please help me ?

Here’s the url: http://citytrail.salomonrunning.com/fr/share-run/1124
Here’s the image: http://citytrail.salomonrunning.com/map/run-1124.png

The image is generated from a PHP script with imagepng() function.

Thank you a lot for your help!


#2

Could find a solution from another post :

You need to add the Etag header in the header response like this :

header(‘Content-type: image/png’);
ob_start();
imagepng($map);
$image = ob_get_clean();
$etag = md5($image);
header(‘Last-Modified: ‘.gmdate(‘D, d M Y H:i:s’).’ GMT’);
header('Etag: '.$etag);
imagepng($map);


#3

thanks for following up with us here!