url-to-png
url-to-png copied to clipboard
Configurable defaults
All the query parameters have default values! It would be great if these defaults can be configured with environment variables, e.g. DEFAULT_WIDTH
, DEFAULT_VIEWPORT_HEIGHT
, etc.
Oh nice yeah good idea, that would be an easy follow up
@jasonraimondi thank you for looking into this! I could not find how to use these options. Happy to help with updating the docs, if you point me to the implementation.
Oh shoot I accidentally thought this was one of my “brainstorming” issues that had (like #39). I have not implemented this one yet (mostly because I forgot) but would definitely accept a PR for any of these improvements. I can try and get this issue worked on soon now that I remember it is a real request from an end user.
+1 for this defaults to be configured as env var :)