j-a-n / lovelace-wallpanel

🖼️ Wall panel mode and photo screensaver for your Home Assistant Dashboards
GNU General Public License v3.0
478 stars 44 forks source link

Change image_fit based on image orientation/aspect ratio #189

Open curtisbarnard opened 10 months ago

curtisbarnard commented 10 months ago

In general landscape images display well with image_fit: cover. Most portrait images do no though and would work better with contain. I was think it might be nice to have an option to switch to contain for images that have a portrait orientation or have some aspect ratio that indicates a portrait orientation.

dallingham commented 8 months ago

A related enhancement would be to allow the option of requesting two side-by-side pictures for portrait mode pictures. The Google Home devices do this. Since their orientation is landscape, when they show portrait pictures, they show two portrait pictures side-by-side, which does a good job of filling the display.