Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert a tweet to image [closed]

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

like image 240
Salman Mhmdi Avatar asked Aug 25 '16 19:08

Salman Mhmdi


People also ask

How do I bypass Twitter image compression?

To do so, head over to Settings and privacy > Data usage > High quality image upload. Here, you can select whether you want to upload high-resolution images only using Mobile data or Wi-Fi, or simply with whichever is available.

Can you replace an image in a tweet?

Twitter does not allow users to change the image associated with a Twitter card. To change the featured image in the social post, hover over the Twitter card and click Change to photo post.

Can you remove an image from a tweet?

Report the Tweet Which Contains the PictureTwitter comes with a built-in report feature to remove abuse and unwanted pictures. Click the down arrow on the offending Tweet, then select 'Report Tweet'.


3 Answers

I've created a small web-app to convert tweets to images. It connects Twitter's embed URL with Puppeteer in the backend and take a screenshot. You can also change some parameters like image width, padding, theme and download the image as a png file.

It's open source so you can take a look at the code.

https://github.com/ozgrozer/tweet-image

https://tweet-image.glitch.me/

enter image description here

like image 122
ozgrozer Avatar answered Oct 19 '22 16:10

ozgrozer


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.

like image 30
Terence Eden Avatar answered Oct 19 '22 15:10

Terence Eden


You can now get images or screenshots of tweets using the @aissistant handle on twitter.

Retweet or reply to any tweet with the comment "@aissistant #image" to get an image. 
Retweet or reply to any tweet with the comment "@aissistant #screenshot" to get a screenshot.
Retweet any tweet containing images or videos with the comment "@aissistant #video" to get a video.

For other options like converting to memes and jokes check out the handle.

Full disclosure: I am creator of the bot behind the handle.

like image 20
NVM Avatar answered Oct 19 '22 16:10

NVM