sthuber90 / mmm-amazon-photos

Magic Mirror Module to get Amazon Photos as background images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve image positioning configuration

sthuber90 opened this issue · comments

At the moment an image always fills the screen. It should be configurable to cover the background or fit in the image into the background i.e. portrait pictures in landscape mode should fit in window and leave black bars on each side. Also, panorama pictures never actually fit in the screen, so maybe the aspect ratio can be used to fit the pictures into the screen

Ok, after checking it's already possible to set background-size CSS property to cover or contains. Maybe I need to take the aspect ratio into account and change the background-size property depending on it