Snille / MMM-Profilepicture

A module for the MagicMirror 2 to add a background picture to the current profile.
MIT License
2 stars 1 forks source link

The image don't start at origin of the screen #1

Closed titouan73 closed 2 years ago

titouan73 commented 2 years ago

Hello i'm sorry to disturb you but I use your module to setup a background image for each profile and for each one the background does not start at the botoom of the screen. Would it be possible to add an 'origin' parameter in order to specify where we want the bottom left corner of the image be.

image

Snille commented 2 years ago

Hi, I'm not sure what you mean? The module just displays a picture in the "area" you define (default it's fullscreen_below @ 100% both horizontally and vertically). You can simply make a picture in the form you want... :) If you want a "black" part of the picture at the bottom, just leave whatever height you want "black" in the actual picture...

titouan73 commented 2 years ago

The picture is 1920x1080 so the screen. I didn't transform it via css. On top of that even with css I can't fill this black bar at the bottom

Snille commented 2 years ago

Hm... Try to disable all other modules and see if it's something else that "creates" the black bar... Have you "disabled" the margins in the CSS? By default the MM has margins set, you can change that in the costume.css... Here is all the "config" you need... Just tested it on my "dev" mirror. I have only enabled "MMM-Remote-Control", "MMM-Modulebar", "clock" and the "MMM-Profilepicture" (set to class "everyone" in this case. :)... You can see the margins in lower right file... image

titouan73 commented 2 years ago

Thanks I will give it a try tomorrow 😉

titouan73 commented 2 years ago

Ok the problem was due to the weird form factor of my raspi display. I've forced a pixed definition off the wallpaper and it overflow a bit but I don't care. Thanks for your help.