darickc / MMM-BackgroundSlideshow

MIT License
138 stars 79 forks source link

Scale image size #64

Closed vulcandragon closed 4 years ago

vulcandragon commented 4 years ago

Is there a way to scale the image size to that the image fits the screen. Tall images scale to the max height of the screen, or pre-determined size. And/or wide images scale to the max width of the screen, or pre-determined size.

darickc commented 4 years ago

You want to use the backgroundSize setting: The sizing of the background image. Values can be: cover: Resize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges. contain: Resize the background image to make sure the image is fully visible

vulcandragon commented 4 years ago

Nevermind. I'm stupid and found the settings...

Thank you