geek-at / http2pic

Simple API for creating screenshots of websites
https://http2pic.haschek.at
Apache License 2.0
194 stars 26 forks source link

option to set longer load time #3

Closed davidvasandani closed 8 years ago

davidvasandani commented 8 years ago

Some websites don't fully load by the time the picture is taken.

Example: https://http2pic.haschek.at/api.php?url=warbyparker.com

Is it possible to add an option to extend the load time?

lekoaf commented 8 years ago

You can set a timeout that ranges from 1-30. I'm guessing that's seconds. Just add &timeout=30 to your url.

geek-at commented 8 years ago

Exactly. You can set the timeout higher with a simple change in the api.php file. I didn't make it higher than 30 seconds for the public api