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

Full Screen Images #112

Open
paddyhughes opened this issue Aug 24, 2021 · 2 comments
Open

Full Screen Images #112

paddyhughes opened this issue Aug 24, 2021 · 2 comments

Comments

@paddyhughes
Copy link

paddyhughes commented Aug 24, 2021

Hi Having issues getting full screen images. it pulls images perfectly for google but I'm left with large black borders around any image that is displayed. squared landscaped and portrait. Is there any way to have it fill 95% of the screen Hight and Width.
{ module: "MMM-GooglePhotos", position: "fullscreen_below", config: { albums: ["School Pictures"], // Set your album name. like ["My wedding", "family share", "Travle to Paris"] updateInterval: 1000 * 60, // minimum 10 seconds. sort: "new", // "old", "random" uploadAlbum: null, // Only album created by create_uploadable_album.js. condition: { fromDate: null, // Or "2018-03", RFC ... format available toDate: null, // Or "2019-12-25", minWidth: null, // Or 400 maxWidth: 8000, // Or 8000 minHeight: null, // Or 400 maxHeight: 8000, // Or 8000 minWHRatio: null, maxWHRatio: null, // WHRatio = Width/Height ratio ( ==1 : Squared Photo, < 1 : Portraited Photo, > 1 : Landscaped Photo) }, showWidth: 1080, // These values will be used for quality of downloaded photos to show. real size to show in your MagicMirror$ showHeight: 1920, timeFormat: "YYYY/MM/DD HH:mm", // Or relative` can be used.
}
},

@aneaville
Copy link
Collaborator

Lets start with some easy things first:
The values in your showWidth/showHeight are the default values. Have you tried changing these to match your screen?
Have you tried either of the following in your css/custom.css

To cover whole region with image : Add this into your css/custom.css.
#GPHOTO_CURRENT {
background-size:cover;
}
To shrink image and be fully visible on smaller screens : Add this into your css/custom.css.
#GPHOTO_CURRENT {
background-size:contain;
}

@hvw33
Copy link

hvw33 commented Oct 21, 2021

Actually have the same question/concern, the images are shown over their transparent shadow with a tiny 10px border

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

3 participants