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

Resolution change?! #48

Open
pickonedev opened this issue Mar 8, 2022 · 4 comments
Open

Resolution change?! #48

pickonedev opened this issue Mar 8, 2022 · 4 comments

Comments

@pickonedev
Copy link

Your idea as completely as you can describe it
There is any way in order to change the resolution of the background? I see that it is rendering a lower resolution and the quality it is not perfect. I have a tablet with 1920 x 1200, but the resolution which this add-on is showing, it is less than 1280x .... I think is somewhere around 900 x ..... which is pretty low

Describe the solution you'd like
A clear and concise description of what you want to happen.

@pickonedev
Copy link
Author

This is the image resolution
1
And this is what I see on my tablet
2

@pickonedev
Copy link
Author

@Villhellm Any advices?

@pickonedev
Copy link
Author

Seems that the rendered resolution for the background is 960 x 600, on a tablet with 1920 x 1200...

@pavlov70
Copy link

Sadly, I believe the author passed away a year or so ago from what I saw on the HA forum. I had the same issue with a 1920x1200 tablet and my custom 1920x1200 cinemagraphs. I "fixed" it by modifying animated-background.js around line 450 thusly:
video { width: 1280px; height: 800px; position: absolute; top: 0; left: 0; }

The end result is 1920x200 cinemagraphs that play full-screen with no clipping on my 1920x1200 display. You can play with the resolution but that's what worked for me. I think there's either some bad math in the code or the author was trying to accommodate as many variables as possible. With my above change, anything other than 1920x1200 videos and display will likely result in a video that doesn't fill the entire screen.

Also, in case you run into issues with .webm files, I was able to get those working by hard-coding "type='video/webm'" in the doc_body line around line 433. Again, all of your videos will have to be webm if you make that change.

Hope this helps.

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

No branches or pull requests

2 participants