Jump to content

Recommended Posts

Posted

Updated the image saving logic. "Save" stores the images in same format like the input file. "Save as" stores the images as jpg. Resulting images is stored as 1000x1500px instead of 502x750px.

Release v0.32 · v1rusnl/Poster-Overlay-GUI

Posted

This is exactly what I was looking for but when I try to save or save as I get an unhandled exception error. I tried running as administrator, same error. Any help is appreciated.

Running it on a Windows 11 machine trying to edit posters on my unRAID NAS, is that the problem?

Screenshot 2025-01-31 153559.png

Posted
21 hours ago, denzoid said:

This is exactly what I was looking for but when I try to save or save as I get an unhandled exception error. I tried running as administrator, same error. Any help is appreciated.

Running it on a Windows 11 machine trying to edit posters on my unRAID NAS, is that the problem?

Screenshot 2025-01-31 153559.png

Unfortunately I cannot reproduce the issue, neither wenn the images are on my local Win11 machine, nor when I edit a poster in a SMB network share. What are the expanded details of the error message and what happens if you try to edit a local image on your Win11 machine testwise? 

Posted (edited)
3 hours ago, sh0rty said:

Unfortunately I cannot reproduce the issue, neither wenn the images are on my local Win11 machine, nor when I edit a poster in a SMB network share. What are the expanded details of the error message and what happens if you try to edit a local image on your Win11 machine testwise? 

Sorry, I should have included that the first time. If I copy the poster.jpg to my W11 desktop I can edit/save it with no problem. I also tried mapping the network drive in Windows Explorer but I'm getting the same error.
Here is the full text of the error message:

 

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
   at System.Drawing.Image.get_RawFormat()
   at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
   at PosterOverlay.PosterOverlay.btnSaveAsImage_Click(Object sender, EventArgs e) in C:\Users\blingbling\source\repos\v1rusnl\Poster-Overlay-GUI\PosterOverlay.cs:line 331
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)


************** Loaded Assemblies **************
System.Private.CoreLib
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Private.CoreLib.dll
----------------------------------------
PosterOverlay
    Assembly Version: 1.0.0.0
    Location: C:\Program Files (x86)\Poster Overlay\PosterOverlay.dll
----------------------------------------
System.Runtime
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Runtime.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.12\System.Windows.Forms.dll
----------------------------------------
System.Windows.Forms.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.12\System.Windows.Forms.Primitives.dll
----------------------------------------
System.ComponentModel.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.ComponentModel.Primitives.dll
----------------------------------------
System.Drawing.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Drawing.Primitives.dll
----------------------------------------
System.Collections.Specialized
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Collections.Specialized.dll
----------------------------------------
System.Runtime.InteropServices
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Runtime.InteropServices.dll
----------------------------------------
System.Threading
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Threading.dll
----------------------------------------
System.Diagnostics.TraceSource
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Diagnostics.TraceSource.dll
----------------------------------------
System.Collections
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Collections.dll
----------------------------------------
System.Drawing.Common
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.12\System.Drawing.Common.dll
----------------------------------------
Microsoft.Win32.Primitives
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\Microsoft.Win32.Primitives.dll
----------------------------------------
System.ComponentModel.EventBasedAsync
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.ComponentModel.EventBasedAsync.dll
----------------------------------------
System.Threading.Thread
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Threading.Thread.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.12\Accessibility.dll
----------------------------------------
System.ComponentModel.TypeConverter
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.ComponentModel.TypeConverter.dll
----------------------------------------
System.Resources.Extensions
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.12\System.Resources.Extensions.dll
----------------------------------------
System.Memory
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Memory.dll
----------------------------------------
System.Drawing
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.12\System.Drawing.dll
----------------------------------------
System.Collections.Concurrent
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Collections.Concurrent.dll
----------------------------------------
System.ObjectModel
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.ObjectModel.dll
----------------------------------------
System.Numerics.Vectors
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Numerics.Vectors.dll
----------------------------------------
System.ComponentModel
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.ComponentModel.dll
----------------------------------------
Microsoft.Win32.SystemEvents
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.12\Microsoft.Win32.SystemEvents.dll
----------------------------------------
System.Collections.NonGeneric
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Collections.NonGeneric.dll
----------------------------------------
System.Runtime.Loader
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Runtime.Loader.dll
----------------------------------------
System.Diagnostics.StackTrace
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Diagnostics.StackTrace.dll
----------------------------------------
System.Reflection.Metadata
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Reflection.Metadata.dll
----------------------------------------
System.Collections.Immutable
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Collections.Immutable.dll
----------------------------------------
System.Text.Encoding.Extensions
    Assembly Version: 8.0.0.0
    Location: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.12\System.Text.Encoding.Extensions.dll
----------------------------------------

************** JIT Debugging **************
 

Edited by denzoid
Posted

Could it be a permission problem, since it's working locally?

Posted (edited)
7 hours ago, sh0rty said:

Could it be a permission problem, since it's working locally?

I checked my permission settings and they look ok:

For directories:
drwxrwxrwx
For read/write files:
-rw-rw-rw-

I then ran the fix permissions utility in unRAID just to make sure these permissions were applied to everything located on that share. I'm still getting the same error. I can open any poster art on that share in Photoshop on the same W11 machine and edit it, save it  or do a save as and replace it with no issue. I'd really love to get this working as I have about 300+ posters I'd like to edit.

Edited by denzoid
Posted (edited)
2 hours ago, denzoid said:

I checked my permission settings and they look ok:

For directories:
drwxrwxrwx
For read/write files:
-rw-rw-rw-

I then ran the fix permissions utility in unRAID just to make sure these permissions were applied to everything located on that share. I'm still getting the same error. I can open any poster art on that share in Photoshop on the same W11 machine and edit it, save it  or do a save as and replace it with no issue. I'd really love to get this working as I have about 300+ posters I'd like to edit.

Please try this one. If that doesn't fix the issue, we're outta luck here since I'm altering code without being able to repro the error ...🙃

 

PosterOverlayGUI_Test.zip

Edited by sh0rty
Posted (edited)
3 hours ago, sh0rty said:

Please try this one. If that doesn't fix the issue, we're outta luck here since I'm altering code without being able to repro the error ...🙃

 

PosterOverlayGUI_Test.zip 1.13 MB · 0 downloads

Thanks for working on this for me, I really appreciate it! I launched it, and it asked for runtime 8.0.12 which I installed. This time it showed a different error but it didn't have any option to see details.
 

Screenshot 2025-01-18 132541.png

Edited by denzoid
Posted (edited)
6 hours ago, denzoid said:

Thanks for working on this for me, I really appreciate it! I launched it, and it asked for runtime 8.0.12 which I installed. This time it showed a different error but it didn't have any option to see details.
 

Screenshot 2025-01-18 132541.png

OK, unfortunately I have no clue to fix your problem. 😮‍💨

 

Only suggestion I could make is to use the attached script. Just change line 5 and 6 to your source and target folder. The script copies all poster.jpg files from source to target folder, preserving the folder structure from source directory. When finished, you can simply copy the structure with the modified poster.jpgs back in place without inserting every poster on it's own into the movie subfolders.

 

 

Postercopy.bat

Edited by sh0rty
Posted
17 hours ago, sh0rty said:

OK, unfortunately I have no clue to fix your problem. 😮‍💨

 

Only suggestion I could make is to use the attached script. Just change line 5 and 6 to your source and target folder. The script copies all poster.jpg files from source to target folder, preserving the folder structure from source directory. When finished, you can simply copy the structure with the modified poster.jpgs back in place without inserting every poster on it's own into the movie subfolders.

 

 

Postercopy.bat 738 B · 0 downloads

I tried it again today and it's working perfectly! My only guess is either Plex or Emby was doing something in the background scanning directories or something and was preventing files from being written over. Anyway many thanks for your help and providing this utility!

Posted
6 hours ago, denzoid said:

I tried it again today and it's working perfectly! My only guess is either Plex or Emby was doing something in the background scanning directories or something and was preventing files from being written over. Anyway many thanks for your help and providing this utility!

Did it work with the 0.32 from Github, with the test version from here or with both?

Posted
10 hours ago, sh0rty said:

Did it work with the 0.32 from Github, with the test version from here or with both?

The original GitHub worked, but the test version gets an error message.

 

  • Like 1
Posted (edited)

Can you guys modify it so that the app just read the names of the images on OverlayImages so anyone can add their own and modify accordingly.  MY usecase is for some other categories liek DVD, recommended, Nominated, etc.

Edited by kassss
Posted (edited)
On 2/8/2025 at 5:35 AM, kassss said:

Can you guys modify it so that the app just read the names of the images on OverlayImages so anyone can add their own and modify accordingly.  MY usecase is for some other categories liek DVD, recommended, Nominated, etc.

You can download the code from github, load it into Visual Studio 2022 and modify it to your needs to use your own images, then build the program. Therefore @Pejamasmade his GH repo which I forked. You need to modify PosterOverlay.cs and PosterOverlay.csproj + add you selfmade overlay images. What to change is self-explanatory if you dig into the code.

Currently there is no intention on my side to do more to the tool since it fullfills all my needs and I moved away back to the coverart plugin anyways last week.

Edited by sh0rty
Posted
On 2/4/2025 at 1:07 AM, sh0rty said:

Did it work with the 0.32 from Github, with the test version from here or with both?

I finally figured out the problem. The files were being locked by Directory Opus (Windows Explorer replacement) I upgraded to the newest version of DOpus and now everything works as it should. Thanks for your help and a great utility!

  • Like 1
alamoknight
Posted

Hey Shorty,

Do you have any plans to add Atmos or DTSX etc to the banners? It would be a great addition

BillOatman
Posted
21 hours ago, alamoknight said:

Hey Shorty,

Do you have any plans to add Atmos or DTSX etc to the banners? It would be a great addition

That's the beauty of open source ... load the free Visual Studio Community 2022, get the source as stated a couple posts above this, and have fun :)

  • Like 2
  • 4 weeks later...
alamoknight
Posted
On 2/20/2025 at 11:53 AM, BillOatman said:

That's the beauty of open source ... load the free Visual Studio Community 2022, get the source as stated a couple posts above this, and have fun :)

I clearly suck at that because I tried over 20 times and could never get it to work. I am at a loss. My daughter was able to build the banners. However, we are at a loss for how to do the code. If anyone could help it would be appreciated.

4K with DV and Dolby Atmos.png

4K with DV and DTS.png

4K with HDR and Dolby Atmos.png

4K with HDR and DTS.png

BillOatman
Posted

@alamoknightSince your daughter went through the effort, I added your 4 new overlays :)

@sh0rtyYou should have a pull request waiting.

BillOatman
Posted
51 minutes ago, sh0rty said:

@alamoknight@BillOatmanDone, thanks for contribution. 

Release v0.33 · v1rusnl/Poster-Overlay-GUI

Since I don't use it anymore, we have to choice. Either transfer the repo you @BillOatmanor you use your fork for eventual progress and I archive mine.

Honestly @sh0rty, I've never used it.  I just had some time to help out.  So, I have no intention of supporting it going forward either.

alamoknight
Posted

Thank You So much. It means a lot. I really do appreciate it

 

Posted

Repo is now archived. Feel free to fork if you need additional Cover overlays.

  • 3 weeks later...
Posted (edited)

Been a while, nice to see others interested in this and taking the time to make changes. I've recently been working on a website with nicer visuals, other tools and functions etc.

Bit of a teaser of the overlay tool.

Screenshot 2025-04-08 182701.png

Edited by Pejamas
Typo
  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...