https://github.com/coding/url2pic
A web service for fetching url and converting into image using headless Chromium.
https://github.com/coding/url2pic
Last synced: 10 months ago
JSON representation
A web service for fetching url and converting into image using headless Chromium.
- Host: GitHub
- URL: https://github.com/coding/url2pic
- Owner: coding
- License: mit
- Created: 2017-06-22T07:22:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-09T11:54:08.000Z (about 8 years ago)
- Last Synced: 2025-02-15T11:11:35.565Z (10 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 3
- Watchers: 13
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Dockerfile# url2pic
A web service for fetching url and converting into image using headless Chromium.
## Introduction
This project is inspired by [url2png](https://www.url2png.com/).
I have no idea what technology behind that. But taking advantage of
[Headless Chrome](https://developers.google.com/web/updates/2017/04/headless-chrome), It quite easy to setup a
micro-service like it.
schnerd's [post](https://medium.com/@dschnr/using-headless-chrome-as-an-automated-screenshot-tool-4b07dffba79a) and
[repo](https://github.com/schnerd/chrome-headless-screenshots) help a lot.
## Usage
### Linux
#### Setup
[setup.md](./dev/setup.md)
## Development
### prepare
#### yarn
````
brew install yarn
```
#### Global Binary
```
yarn global add pm2
```
### dev
```
yarn dev
```