Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhsattarian/tweet2img
Generates an image from a given tweet! (Puppeteer + Netlify serverless functions + Svelte)
https://github.com/mhsattarian/tweet2img
convert image serverless tweets twitter
Last synced: about 6 hours ago
JSON representation
Generates an image from a given tweet! (Puppeteer + Netlify serverless functions + Svelte)
- Host: GitHub
- URL: https://github.com/mhsattarian/tweet2img
- Owner: mhsattarian
- Created: 2020-04-04T17:12:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T19:17:30.000Z (almost 2 years ago)
- Last Synced: 2023-03-06T03:21:03.772Z (over 1 year ago)
- Topics: convert, image, serverless, tweets, twitter
- Language: HTML
- Homepage: https://tweet2img.netlify.app/
- Size: 809 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# tweet2img
![Loading...](/assets/header.jpeg)
Generate an image from a tweet, so that it can be easier to share! ¯\\\_(ツ)_/¯
this project uses twitter embed public API, so there is **no need for apiKey** or such thing. it is running on a **netlify serverless funciton** and uses *puppeteer* to open the embed page and take a *screenshot*.
## Usage
copy link of a tweet and place at the end:
```
https://tweet2img.netlify.app/img?url=
```## Params
- `theme=dark` enables dark theme.
- `liked=true` makes tweet liked.
- `removeComments=true` removes comments section.## examples
live example of [this tweet](https://twitter.com/Mehdi70501002/status/1262117721090785280):
```
https://tweet2img.netlify.app/img?url=https://twitter.com/Mehdi70501002/status/1262117721090785280&removeComments=true
```![Loading...](https://tweet2img.netlify.app/img?url=https://twitter.com/Mehdi70501002/status/1262117721090785280&removeComments=true)
live example of [this tweet](https://twitter.com/fermatslibrary/status/1271069698088632321?s=19):
```
https://tweet2img.netlify.app/img?theme=dark&url=https://twitter.com/fermatslibrary/status/1271069698088632321?s=19
```![Loading...](https://tweet2img.netlify.app/img?theme=dark&url=https://twitter.com/fermatslibrary/status/1271069698088632321?s=19)