Reptillian Posted March 18, 2021 Author Share Posted March 18, 2021 Update again. In case of either width or height being 0, you can use the other one to define tile width and tile size. Before, it was only width that can be used or it wouldn't work. Not really much of a update as this plugin is complete at this point. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
AndrewDavid Posted October 28, 2021 Share Posted October 28, 2021 Lets see if I can shake things up. Quote Link to comment Share on other sites More sharing options...
Reptillian Posted October 28, 2021 Author Share Posted October 28, 2021 (edited) New Update! - Slightly more optimized. - Use NET 5.0 Edited October 28, 2021 by Reptillian 2 Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
lynxster4 Posted October 28, 2021 Share Posted October 28, 2021 @Reptillian I replaced the old Gmic Sharp Native Library with the new one you linked to and replaced the TileForm dll and this is what I get: Exception: GmicSharp.GmicException: Unable to load the gmic-sharp native library from C:\Program Files\Paint.NET\Effects\GmicSharpNative\win-x64\libGmicSharpNative.dll ---> System.DllNotFoundException: Unable to load DLL 'C:\Program Files\Paint.NET\Effects\GmicSharpNative\win-x64\libGmicSharpNative.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at System.Runtime.InteropServices.NativeLibrary.LoadFromPath(String libraryName, Boolean throwOnError) at System.Runtime.InteropServices.NativeLibrary.Load(String libraryPath) at GmicSharp.Interop.DotNetNativeLibrary.Load(String path) --- End of inner exception stack trace --- at GmicSharp.Interop.LibraryLoader.LoadNativeLibrary() at GmicSharp.Interop.GmicSharpNative.LoadNativeLibrary() at GmicSharp.Interop.GmicSharpNative.Initialize() at GmicSharp.GmicImageList`1..ctor() at GmicSharp.GmicRunner`1..ctor(String command, String customResourcePath, String hostName, IEnumerable`1 inputImages, IGmicOutputImageFactory`1 outputImageFactory, CancellationToken cancellationToken, IProgress`1 taskProgress) at GmicSharp.Gmic`1.RunGmicAsync(String command, IEnumerable`1 inputImages, CancellationToken cancellationToken, IProgress`1 progress) at GmicSharpPdn.PdnGmicSharp.RunGmic(String command, Func`1 cancelPollFn) I simply replaced the files; I did not move anything. Can you look into this? Thanks! Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
otuncelli Posted October 28, 2021 Share Posted October 28, 2021 12 minutes ago, lynxster4 said: @Reptillian I replaced the old Gmic Sharp Native Library with the new one you linked to and replaced the TileForm dll and this is what I get: Exception: GmicSharp.GmicException: Unable to load the gmic-sharp native library from C:\Program Files\Paint.NET\Effects\GmicSharpNative\win-x64\libGmicSharpNative.dll ---> System.DllNotFoundException: Unable to load DLL 'C:\Program Files\Paint.NET\Effects\GmicSharpNative\win-x64\libGmicSharpNative.dll' or one of its dependencies: The specified module could not be found. (0x8007007E) at System.Runtime.InteropServices.NativeLibrary.LoadFromPath(String libraryName, Boolean throwOnError) at System.Runtime.InteropServices.NativeLibrary.Load(String libraryPath) at GmicSharp.Interop.DotNetNativeLibrary.Load(String path) --- End of inner exception stack trace --- at GmicSharp.Interop.LibraryLoader.LoadNativeLibrary() at GmicSharp.Interop.GmicSharpNative.LoadNativeLibrary() at GmicSharp.Interop.GmicSharpNative.Initialize() at GmicSharp.GmicImageList`1..ctor() at GmicSharp.GmicRunner`1..ctor(String command, String customResourcePath, String hostName, IEnumerable`1 inputImages, IGmicOutputImageFactory`1 outputImageFactory, CancellationToken cancellationToken, IProgress`1 taskProgress) at GmicSharp.Gmic`1.RunGmicAsync(String command, IEnumerable`1 inputImages, CancellationToken cancellationToken, IProgress`1 progress) at GmicSharpPdn.PdnGmicSharp.RunGmic(String command, Func`1 cancelPollFn) I simply replaced the files; I did not move anything. Can you look into this? Thanks! This might be due to a bug in Paint.NET which will be fixed in the upcoming release. 1 Quote Link to comment Share on other sites More sharing options...
Reptillian Posted October 28, 2021 Author Share Posted October 28, 2021 (edited) @lynxster4 Okay, I looked, but I can't find why. Maybe it's the version of Paint.NET you're using? I'm running Paint.NET 4.3.2. @otuncelli Could you confirm @lynxster4report? Anyone else too? Preferably with Paint.NET 4.3.2. Also, calling @null54 as he's the author of the library for a G'MIC-PDN project. EDIT: Hmm, I might have to add deps.json. See if dropping the attached file to the Paint.NET effect folder would make it work though I doubt it. Other than that, I'm out of ideas. TiledFormGmicPdn.deps.zip Edited October 28, 2021 by Reptillian Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
lynxster4 Posted October 28, 2021 Share Posted October 28, 2021 I am also running Paint.NET 4.3.2. I downloaded the additional file and that does not work...same error message. Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
Reptillian Posted October 28, 2021 Author Share Posted October 28, 2021 5 minutes ago, lynxster4 said: I am also running Paint.NET 4.3.2. I downloaded the additional file and that does not work...same error message. Do you see the file over here? Try also paint.net App files in Documents. Put the GmicSharpNative folder over there. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
lynxster4 Posted October 28, 2021 Share Posted October 28, 2021 I don't have that folder. I'm using the Classic version. Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
Reptillian Posted October 28, 2021 Author Share Posted October 28, 2021 (edited) 6 minutes ago, lynxster4 said: I don't have that folder. I'm using the Classic version. The classic version does detect 'paint.net App Files' folders in C:\Users\Documents'. Create it and put it there. I'm also using the classic version as well, not the store version. Edited October 28, 2021 by Reptillian Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
null54 Posted October 28, 2021 Share Posted October 28, 2021 @Reptillian The issue appears to be that libGmicSharpNative is dynamically linked to its dependent MinGW DLLs, which are not included in the win-x64 folder. The previous versions were statically linked to MinGW. Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
Reptillian Posted October 28, 2021 Author Share Posted October 28, 2021 22 minutes ago, null54 said: @Reptillian The issue appears to be that libGmicSharpNative is dynamically linked to its dependent MinGW DLLs, which are not included in the win-x64 folder. The previous versions were statically linked to MinGW. So, adding MingGW dlls file should fix the problem? Okay, I will get to that. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
Reptillian Posted October 28, 2021 Author Share Posted October 28, 2021 (edited) @lynxster4 Okay, based on what @null54 has said, I just uploaded the .dll files into the GmicSharpNative. Redownload the zip again, and you'll see new files in it. Maybe it'll work this time. Edited October 28, 2021 by Reptillian Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
null54 Posted October 29, 2021 Share Posted October 29, 2021 2 hours ago, Reptillian said: Maybe it'll work this time. It is still giving me an error about missing dependencies. You need to add libdeflate.dll, libjbig-0.dll, libLerc.dll and libwebp-7.dll to the archive. 1 Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
Reptillian Posted October 29, 2021 Author Share Posted October 29, 2021 1 hour ago, null54 said: It is still giving me an error about missing dependencies. You need to add libdeflate.dll, libjbig-0.dll, libLerc.dll and libwebp-7.dll to the archive. Ok, I added those as well. Now, I hope everything is all good. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
Panchdara Posted October 29, 2021 Share Posted October 29, 2021 For some reason.... I get virus message....?? Quote Link to comment Share on other sites More sharing options...
null54 Posted October 29, 2021 Share Posted October 29, 2021 2 hours ago, Panchdara said: I get virus message....?? I got that too, some browsers are showing a false positive for the plugins. Click the Allow Download button and scan the file with your antivirus software. Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
lynxster4 Posted October 29, 2021 Share Posted October 29, 2021 @Reptillian This is the error message I am now receiving, after downloading with the additional files: Exception: GmicSharp.GmicException: *** Error in ./*if/*if/*if/ *** Unknown command or filename 'rep_multicut.' at GmicSharp.Interop.GmicNative.HandleError(GmicStatus status, GmicErrorInfo errorInfo) at GmicSharp.GmicRunner`1.GmicWorker() Sorry... Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
Reptillian Posted October 29, 2021 Author Share Posted October 29, 2021 32 minutes ago, lynxster4 said: @Reptillian This is the error message I am now receiving, after downloading with the additional files: Exception: GmicSharp.GmicException: *** Error in ./*if/*if/*if/ *** Unknown command or filename 'rep_multicut.' at GmicSharp.Interop.GmicNative.HandleError(GmicStatus status, GmicErrorInfo errorInfo) at GmicSharp.GmicRunner`1.GmicWorker() Sorry... No, no, I'm the one that should apologize for the inconvenience, that being said: Well, that only means one more error to resolve since now 1) the gmicsharpnative issue is solved, and 2) I forgot that some people don't have updated update300.gmic file, so to fix it I need to use a merged command. I replaced rep_multicut with gmic_pdn_multicut command which is found at the source code itself. Everything should be solved at this point. 1 Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
lynxster4 Posted October 29, 2021 Share Posted October 29, 2021 (edited) It works!! Thank you! 🤗 Question: If you are going to use a shape via the clipboard, does it matter what color and size it is? Thanks. Edited October 29, 2021 by lynxster4 Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
Reptillian Posted October 29, 2021 Author Share Posted October 29, 2021 (edited) 39 minutes ago, lynxster4 said: It works!! Thank you! 🤗 Question: If you are going to use a shape via the clipboard, does it matter what color and size it is? Thanks. Glad to see that! No, it doesn't matter. It will convert it to black and white. Not binary though, so images with a lot of midtones will results in canvas having mixed colors. You can use any shape you'd like. For best results, use a large image (1024x1024) made with white shape on black canvas as clipboard. Edited October 29, 2021 by Reptillian Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
lynxster4 Posted October 29, 2021 Share Posted October 29, 2021 15 minutes ago, Reptillian said: No, it doesn't matter. It will convert it to black and white. Not binary though, so images with a lot of midtones will results in canvas having mixed colors. You can use any shape you'd like. For best results, use a large image (1024x1024) made with white shape on black canvas as clipboard. Thanks! ❤️ Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
Reptillian Posted October 31, 2021 Author Share Posted October 31, 2021 New update. Minor bug fix. You will see the results is closer to the original image. Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 1, 2021 Share Posted November 1, 2021 @Reptilliansince your plugin has a native DLL dependency, you should package them together and include a .deps.json. The 3 files should go into their own folder when installed. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Reptillian Posted November 1, 2021 Author Share Posted November 1, 2021 (edited) 9 hours ago, Rick Brewster said: @Reptilliansince your plugin has a native DLL dependency, you should package them together and include a .deps.json. The 3 files should go into their own folder when installed. There are few other of my own plugin that depends on the G'MIC library. It's a bit large to store on this forum, and I'm literally the only one in the world qualified to work on G'MIC-PDN plugins. I will see my option. I'll try adding a folder called GmicPDN, and then drop the GmicSharpNative folder there and the required dll there with deps.json. I think the other gmicpdn dlls can also go into GmicPDN folder. Changes to the library is unlikely to break anything. Older gmic commands most likely will work with new g'mic. Just not the revert. EDIT: Yep, creating GmicPDN folder, and then inserting GmicSharpNative folder, and the gmicpdn dlls works. Edited November 1, 2021 by Reptillian Quote G'MIC Filter Developer Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.