/url2img

Primary LanguageJavaScriptMIT LicenseMIT

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