jasonraimondi / url-to-png

Selfhosted. URL to PNG utility featuring parallel rendering using Playwright for screenshots and with storage caching via Local, S3, or CouchDB
https://jasonraimondi.github.io/url-to-png/
MIT License
136 stars 26 forks source link

Configurable defaults #37

Closed enstyled closed 1 month ago

enstyled commented 4 months ago

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.

jasonraimondi commented 4 months ago

Oh nice yeah good idea, that would be an easy follow up

enstyled commented 2 months ago

@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.

jasonraimondi commented 2 months ago

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.

thecoffeebin commented 1 month ago

+1 for this defaults to be configured as env var :)