How to convert a tweet to image

Salman Mhmdi picture Salman Mhmdi · Aug 25, 2016 · Viewed 13.6k times · Source

Is there any specific app, website or something that converts tweets into images? I would like to share tweets in other apps like Telegram, whatsapp etc. Thanks in advance

Answer

Terence Eden picture Terence Eden · Aug 26, 2016

Google has a secret screenshot API

For example, you can use it to get a screenshot of a tweet like this

https://www.googleapis.com/pagespeedonline/v1/runPagespeed?screenshot=true&strategy=mobile&url=https%3a%2f%2ftwitter.com%2fedent%2fstatus%2f661570680253755392

At the bottom of that JSON response, you'll see

"screenshot": {
     "data": "_9j_4AAQSkZJRgAB.....=",
     "height": 569,
     "mime_type": "image/jpeg",
     "width": 320
 }

You will need to Base64 decode it using the URL and Filename safe alphabet.

That will give you a JPG screenshot of the Tweet.