Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase resolution of screenshot? #2

Closed
schteeben95 opened this issue Aug 12, 2018 · 1 comment
Closed

Increase resolution of screenshot? #2

schteeben95 opened this issue Aug 12, 2018 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@schteeben95
Copy link

Is there a way to increase the resolution of the screenshot?

@werthdavid werthdavid self-assigned this Aug 15, 2018
@werthdavid werthdavid added the question Further information is requested label Aug 15, 2018
@werthdavid
Copy link
Owner

Yes, there are two options.

1.:
Use a specific width and height:

   {
          "name": "Google Maps Traffic",
          "url": "http://google.com",
          "height": 1334,
          "width": 750
        }

2.:
Use a Scale-factor.

   {
          "name": "Google Maps Traffic",
          "url": "http://google.com",
          "scale": 2
        }

I would go for a scale factor for the following reason:
HomeApp requests a desired resolution to the plugin. This desired resolution usually differs on different devices (e.g. iPad requests an higher resolution than an iPhone). With scale=2 you just double the resolution of the screenshot. With a fixed width/height you would force a fixed resolution that could lead to black border or something..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants