Plex-Movie-Poster-Display icon indicating copy to clipboard operation
Plex-Movie-Poster-Display copied to clipboard

Theme Idea (Enhancement)

Open Bboy486 opened this issue 3 years ago • 64 comments

An idea for a theme would be to mimic what Steam or playnite (gaming front-ends) do where they have the graphic in the background and have the poster be the focal point. It could pull from the media folder that plex creates for the background image. This would let this script to be used in different uses that just a black background.

ex. Radarr - https://prnt.sc/ve4cip

Bboy486 avatar Feb 07 '21 18:02 Bboy486

We have started on the backend code for this.

Hopefully we will have a front end option in the coming weeks.

ZeroCoolGOS avatar Feb 10 '21 02:02 ZeroCoolGOS

@Bboy486

This feature should now be integrated and you should be able to test it out.

ZeroCoolGOS avatar Feb 13 '21 00:02 ZeroCoolGOS

Should I rerun git clone or just apt update?

Bboy486 avatar Feb 13 '21 02:02 Bboy486

git pull to get the latest code if your already in the dev branch.

ZeroCoolGOS avatar Feb 13 '21 02:02 ZeroCoolGOS

git pull to get the latest code if your already in the dev branch.

Sorry I did that but I still see this in the admin

Version 2.7.1 Download Updates

Bboy486 avatar Feb 13 '21 02:02 Bboy486

After you do your git clone you still have to copy the files from the git folder to your nginx folder (var/www/html).

We still don't have a rolling/simple upgrade process on active sites just yet.

ZeroCoolGOS avatar Feb 13 '21 03:02 ZeroCoolGOS

Yes I do. I backup my config before I did that.

pi@raspberrypi:~/Plex-Movie-Poster-Display $ sudo git pull Already up to date.

sudo git checkout dev Already on 'dev' Your branch is up to date with 'origin/dev'.

Maybe let me know what I should be seeing?

Bboy486 avatar Feb 15 '21 21:02 Bboy486

If you load the page and you see v2.8.0 or higher then you should have the latest version.

And if your on that version, you can go to the "Coming Soon" and "Now Showing" and show advanced settings and then you should have a background option.

ZeroCoolGOS avatar Feb 15 '21 23:02 ZeroCoolGOS

Ok. I had to run it a few times but it works.

It is really cool. Looks like it doesn't always take the same photo as the movie (one time it did though).

Is it possible to have the background blurred out or have a cor overlay with screen or multiply on it?

Ex. https://images.app.goo.gl/nBtcy6ybfPv46zFNA

https://images.app.goo.gl/zccomhujZ5Ta7FVH7

https://images.app.goo.gl/vjXhF13Q5K8rNFqeA

One error when I updated the coming sound text (I change top fro. Title to Coming soon and bottom to title) even though I had the background checked it no longer displays.

Bboy486 avatar Feb 15 '21 23:02 Bboy486

When you say the same photo are you expecting the poster also be the background?

I will have too look into how it can blur out the background.

Please elaborate when you say core overlay with screen or multiple on it.

Refresh your page and see if the background switch is still on.

Sometimes when you have made a change, saved then make another change and save, some of the options are overwritten. This is something I am still working on trying to address. In the mean time I would just refresh the page before you make an additional change. This will reload the settings again.

ZeroCoolGOS avatar Feb 15 '21 23:02 ZeroCoolGOS

I will add the blur in my next code release for @MattsShack to review sometime this week.

ZeroCoolGOS avatar Feb 16 '21 02:02 ZeroCoolGOS

When you say the same photo are you expecting the poster also be the background?

No I liked that it was a different but some of the posters had the same image and background image and others had different images. I prefer the later.

Bboy486 avatar Feb 16 '21 21:02 Bboy486

Please elaborate when you say core overlay with screen or multiple on it.

This is a photoshop terms

https://www.photoshopessentials.com/photo-editing/layer-blend-modes/intro/

Bboy486 avatar Feb 16 '21 21:02 Bboy486

Sometimes when you have made a change, saved then make another change and save, some of the options are overwritten. This is something I am still working on trying to address. In the mean time I would just refresh the page before you make an additional change. This will reload the settings again

I did save and refresh but it seems like a big because even though the background image was still checked when I update the settings the front end no longer showed the image. I had to turn it off and back on again so it would take.

Bboy486 avatar Feb 16 '21 21:02 Bboy486

When you say the same photo are you expecting the poster also be the background?

No I liked that it was a different but some of the posters had the same image and background image and others had different images. I prefer the later.

The way Plex provides the information, we do not have control as to what the background will be for be able to randomize that background.

If Plex has a background that is different then the poster then it will be used; if Plex's background is that poster then it will be used. It all has to do with the data from Plex. If no background is defined for the media, then Plex does not provide data for it.

I hope that made sense. If not please let me know and I will work to clarify (and update the documentation)

ZeroCoolGOS avatar Feb 16 '21 22:02 ZeroCoolGOS

Please elaborate when you say core overlay with screen or multiple on it.

This is a photoshop terms

https://www.photoshopessentials.com/photo-editing/layer-blend-modes/intro/

I have made some adjustments for the background and will be available in the next targeted v2.9 release that I am working on and hope to have completed by the end of the week. It will have an 8px blur on the background image as it currently stands.

ZeroCoolGOS avatar Feb 16 '21 22:02 ZeroCoolGOS

Sometimes when you have made a change, saved then make another change and save, some of the options are overwritten. This is something I am still working on trying to address. In the mean time I would just refresh the page before you make an additional change. This will reload the settings again

I did save and refresh but it seems like a big because even though the background image was still checked when I update the settings the front end no longer showed the image. I had to turn it off and back on again so it would take.

I still have yet to fix the bug about the refresh. But hopefully with the above mentioned v2.9 release the background image will be a bit more stable as I have made some changes to the implementation.

Also sometimes the media may not have background assigned to it in Plex, so in that place a black background will show up.

You should never see another media's background with a different poster. If that is the case please log a new issue for us to investigate.

ZeroCoolGOS avatar Feb 16 '21 22:02 ZeroCoolGOS

You should never see another media's background with a different poster. If that is the case please log a new issue for us to investigate.

To be clear I'm not seeing anothers media I am seeing the same background and the poster. Most of the time it has different backgrounds but a few times it shows the same image in both areas.

Bboy486 avatar Feb 19 '21 05:02 Bboy486

Hmm. I don't know how that would happen or how we can address it from our end.

I have however seen that sometimes the wrong background art for the poster while using caching. That will be addressed with the next release.

Can you validate on your plex server to see if the poster image is the same as the background?

Also do you have caching on?

ZeroCoolGOS avatar Feb 19 '21 05:02 ZeroCoolGOS

The latest dev branch now has the background focus request.

ZeroCoolGOS avatar Feb 19 '21 21:02 ZeroCoolGOS

Hmm. I don't know how that would happen or how we can address it from our end.

I have however seen that sometimes the wrong background art for the poster while using caching. That will be addressed with the next release.

Can you validate on your plex server to see if the poster image is the same as the background?

Also do you have caching on?

I do have cache on. https://prnt.sc/101khmp****

Where would I see the background image?

Good - https://prnt.sc/101ki2w Not good - https://prnt.sc/101kjdd

Bboy486 avatar Feb 20 '21 05:02 Bboy486

When you go into plex you will have the option on the media when you try and edit it.

http://prnt.sc/101koxp

If you go into your media you will see what the background image is set to and if it is the same as the poster. You can also change the image if you like.

ZeroCoolGOS avatar Feb 20 '21 05:02 ZeroCoolGOS

I'll look into automating that. Here is another issue. The way the images render are progressive and if I set a low number for transition it doesn't render correctly

https://drive.google.com/file/d/1XZB0S9iIwXNvFstKCP7Ei5bGvRy1FUR5/view?usp=drivesdk

Bboy486 avatar Feb 21 '21 17:02 Bboy486

What part will you automate? Please keep us posted on any automation you do on your plex because we are always interested in seeing what others are working on :)

As for the progressive image rendering. Based on your video it looks like you are not using the latest code (as the background does not have a blur). Could you update to the latest version and see if that fixes the issue?

When we implemented the blur we made some changes in how it would render so that may resolve the issue. If not let us know and we can try and look into it further.

One other possible issue could be that the images are relatively large for the device to render fast enough and scale down.

But I would recommend upgrading to the latest build first.

ZeroCoolGOS avatar Feb 21 '21 19:02 ZeroCoolGOS

What part will you automate? Please keep us posted on any automation you do on your plex because we are always interested in seeing what others are working on :)

I updated my Plex library to the newer agent to see if it does a better job of matching the metadata and images. https://forums.plex.tv/t/introducing-the-new-plex-movie-agent/615989

As for the progressive image rendering. Based on your video it looks like you are not using the latest code (as the background does not have a blur). Could you update to the latest version and see if that fixes the issue?

Ah, I keep forgetting to copy to the HTML folder. Adding this for my future reference: cd Plex-Movie-Poster-Display

cd /var cd www cd /html/ sudo nano config.php

Save this file as a backup

cd cd Plex-Movie-Poster-Display sudo git checkout dev sudo get pull sudo cp -R * /var/www/html

cd /var cd www cd html

sudo nano configbackup.php save as sudo nano config.php

One other possible issue could be that the images are relatively large for the device to render fast enough and scale down.

I tried this on both the fire tablet in the video and my laptop and it was the same issue.

Bboy486 avatar Feb 22 '21 03:02 Bboy486

To save you time for the backup/restore we have a backup option built into the admin page.

Go to the general page and show the advanced options and there is an "Export Configuration" to backup the file, and a "Restore Configuration" so all you have to do is upload your config file back to the system.

That should help speed up the rollout.

We still need to come up with a better upgrade path/script to make it faster for most people. For me, I have it in a docker image so it takes no time for me to spin up the latest update.

ZeroCoolGOS avatar Feb 22 '21 03:02 ZeroCoolGOS

I saw that afterwards. Unfortunately I after copying over to the html folder I am greeted with only a back screen.

Bboy486 avatar Feb 22 '21 04:02 Bboy486

After you copied all the files your given a blank screen? That is after your overwrite of the config.php?

Are you able to get into the config pages?

ZeroCoolGOS avatar Feb 22 '21 19:02 ZeroCoolGOS

Yes I can get to the config but nothing on the front end

Bboy486 avatar Feb 23 '21 03:02 Bboy486

Anything else I should try or just delete and reinstall?

Bboy486 avatar Feb 26 '21 22:02 Bboy486