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

Option to "blur" Image instead of black bars when "size: contain"? #75

Open
tubit opened this issue Jul 18, 2022 · 2 comments
Open

Option to "blur" Image instead of black bars when "size: contain"? #75

tubit opened this issue Jul 18, 2022 · 2 comments

Comments

@tubit
Copy link

tubit commented Jul 18, 2022

Hi & thank you for this awesome MM Module!

I use MM2 as a digital picture frame and just converted from a manual download & using github.com/NautiluX/slide as a slideshow app.

I like to see the full picture instead of zooming into the picture, so I've set size to contain. However, the black bars on the top/bottom or left/right (for portrait) is a bit ulgy.. :)

The slide application had the option to display a blurred background image instead of a black bar - would this also be possible for MMM-Wallpaper?

An example can be seen on the picture here: https://github.com/NautiluX/slide/raw/master/doc/screen.jpg

Thank you!

@asc11111
Copy link

asc11111 commented Jan 22, 2023

I have been able to get something close to this by having two instances in the config.js file and changing the custom.css a little.

config.js

		{
			  module: 'MMM-Wallpaper',
			  position: 'fullscreen_below',
			  config: {
				source: "<local source>",
				caption: false,
				slideInterval: 15000,
				crossfade: true,
				maximumEntries: 1000,
				filter:"grayscale(0.5) brightness(0.2)",
				fadeEdges: true,
				size: "cover",
			  }
		},
		{
			  module: 'MMM-Wallpaper',
			  position: 'fullscreen_below',
			  config: {
				source: "<local source>",
				caption: false,
				slideInterval: 15000,
				crossfade: true,
				maximumEntries: 1000,
				filter:"grayscale(0) brightness(1)",
				fadeEdges: true,
				size: "contain",
			  }
		},

custom.css

.MMM-Wallpaper .content-fill {
  background-color: rgba(255,255,255, 0.2);
  backdrop-filter: blur(10px);
}

@tubit
Copy link
Author

tubit commented Feb 7, 2023

That's an interesting idea, I will give it a try.

Thanks for sharing!

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

2 participants