An open API service indexing awesome lists of open source software.

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.

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
```