unasuke / url2img

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

url2img

Usage

$ curl -v -X POST --header "Content-Type: application/json" --data '{"url": "https://example.com, "size": {"width": 2400, "height": 1260 }}' http://function-url --output ogp.png

Deploy

$ gcloud functions deploy url2img --runtime nodejs10 --trigger-http --region asia-northeast1 --entry-point screenshot

References

About

License:MIT License


Languages

Language:JavaScript 100.0%