Read the statement by Michael Teeuw here.
MMM-BackgroundSlideshow
-
-
@cyrus1337
I’m not sure, I don’t know anything about backgroundSlideShow, but,Your pictures would be greater than resolution of screen.
Then, your PC viewer might have resized your pictures automatically when they were shown. But backgroundSlideShow might not have that feature. However, there is a possibility of controlling by CSS. Ask to creator. -
@sean Thanks for your quick reply.
-
@cyrus1337 said in MMM-BackgroundSlideshow:
@sean Thanks for your quick reply.
I also use this module very successfully. Try to resize the pictures to the resolution of your screen (photoshop), normaly 1920 x 1080, 1024 x 760. Sometimes it is also necessary to set the pictures to the correct aspect ratio 16:9. For me it works fine.
Regards Mike -
@garbleflux i had to modify another image display module to get the correct presentation of images, no zoom in and no crop of portrait mode. does mean that some of the background shows thru, but the pictures are correctly displayed
-
@sdetweil And what would be your module :)
-
@cyrus1337 I am using the MMM-ImagePhotos module… but I had to change the code to keep my images properly formatted…
landscape
https://www.dropbox.com/s/adzzi3bc7wwq8q5/IMG_20181114_102356.jpg?dl=0
portrait
https://www.dropbox.com/s/htxdm7b8sayqazh/IMG_20181114_102350.jpg?dl=0can’t get the pics to actually display here…
-
I made several modules handling photos -
MMM-GooglePhotos,MMM-WeatherBackground,MMM-DropboxWallpaper,…All modules can display photos by its aspect-ratio with covering the target area or resizing to show whole picture.
Try them.-
MMM-DropboxWallpaper (https://github.com/eouia/MMM-DropboxWallpaper)

-
MMM-GooglePhotos (https://github.com/eouia/MMM-GooglePhotos)

-
-
Anyway, If your module would be using
imgtag for showing photos, module should know the exact image size and calculate to resize it by proper target ratio.
Instead, I prefer using Background CSS trick.background-size:coverwill cover whole image to entire area of it’s element,background-size:containwill resize image to fit to target element size. Suprisingly, without any calculation. -
@sean how about a portrait photo sample…
the tv/monitor aspect ratio (16:9) doesn’t fit unless u stretch or clip the image…
the sunrise is 6000x4000 pixels the portrait photo is 4000x6000 (both WxH)
-
@sean but it distorts the picture, not in original format… which is what I want…
-
@sdetweil
There are two options for vertical photos on horizontal screen.-
cover: whole screen will be covered by part of photos. but some areas(top and bottom) of photos will be out of screen -
contain: whole picture will be shown from bottom to top. but some remain area of screen (left and right) will be black.
-
-
@sean i understand… but BOTH distort the image presentation
-
@sdetweil
Which distortion? It’s just resizing. -
@sean bingo… if something is clipped (not shown) then its wrong… I fiddled with all those css settings and finally gave up… i calculate the dimensions myself and all is good on EVERY picture
-
@sdetweil
Then you can use justcontainmode .
Here is my another module handling image -MMM-Rijkswith same technic.
It can show howcontaintrick works.

-
@sean ok, that doesn’t work for me… i am not background, i am foreground. (fullscreen above).
if I set if on the module div or on the image, I get the same extreme zoom in.
-
@sean With the module MM-Background Slideshow I have now added
contain:{ module: 'MMM-BackgroundSlideshow', position: 'fullscreen_below', config: { imagePaths: ['modules/MMM-BackgroundSlideshow/Amerika_2018'], slideshowSpeed: 5000, transitionImages: true, randomizeImageOrder: true, backgroundSize: 'contain' } },The pictures now show it in the correct size. From the pictures, which were photographed in portrait format, it does not display correctly. Funny is that certain something in portrait mode.
-
@cyrus1337
Each JPEG taken by modern digital camera has EXIF -directioninformation . Many picture viewers (in PC or Phone) can show the picture of right direction by automatic rotation with that information.But Most of Web Browser (including Electron/Chrome of MagicMirror) don’t have that feature yet.
If your photos are stored in GooglePhotos or any other “SMART” clouds, the pictures will be stored with right direction when you saved. But… As I know that BackgroundSlideShow use your local directory. Browser cannot know right direction, then It display the picture as it was taken.
I tried automatic rotation on MMM-DropboxWallpaper with EXIF, but not so satisfied. On browser level, it could’t be solved acceptably. Rotation on displaying could make unintended blank area, and Rotation of stored images on RPI needs too much CPU power.
Solution: Rotate photos by manual with image editor in your POWERFUL PC then, save and use them.
-
Ok, thanks for your help. I downloaded the program PhotoScape and changed the height and width of all photos. Look, there you go !! Thank you
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login

