midora Posted November 4, 2021 Author Share Posted November 4, 2021 New release 1.3 (2.11.2021) - Modified to support paint.net 4.3 and .NETCore 5 1.4 (4.11.2021) - Replaced ionic zip class with .net ZipArchive class Quote Link to comment Share on other sites More sharing options...
Rle Posted November 4, 2021 Share Posted November 4, 2021 Doesn't work. 🤔 Plugin Error : D:\Program Files\paint.net\FileTypes\ImZIP.FileType\ImZIP.FileType.dll, Version 1.4.0.0 System.IO.FileNotFoundException: Could not load file or assembly 'PaintDotNet.Data, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null'. Das System kann die angegebene Datei nicht finden. File name: 'PaintDotNet.Data, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null' ---> System.IO.FileNotFoundException: Could not load file or assembly 'PaintDotNet.Data, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null'. Das System kann die angegebene Datei nicht finden. File name: 'PaintDotNet.Data, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null' at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly) at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext) at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName) at PaintDotNet.Runtime.Loader.TrustedPlatformAssemblyResolver.Load(ILoadContext loadContext, AssemblyName assemblyName, String assemblyPath) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\TrustedPlatformAssemblyResolver.cs:line 101 at PaintDotNet.Runtime.Loader.CombinedAssemblyLoader.Load(ILoadContext loadContext, AssemblyName assemblyName, String assemblyPath) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\CombinedAssemblyLoader.cs:line 47 at PaintDotNet.Runtime.Loader.AssemblyResolver.ResolveAssembly(ILoadContext loadContext, AssemblyName assemblyName) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\AssemblyResolver.cs:line 68 at PaintDotNet.Runtime.Loader.LoadContext.AssemblyLoadContextImpl.Load(AssemblyName assemblyName) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\LoadContext.cs:line 168 at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName) at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName) System.IO.FileNotFoundException: Could not load file or assembly 'PaintDotNet.Core, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null'. Das System kann die angegebene Datei nicht finden. File name: 'PaintDotNet.Core, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null' ---> System.IO.FileNotFoundException: Could not load file or assembly 'PaintDotNet.Core, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null'. Das System kann die angegebene Datei nicht finden. File name: 'PaintDotNet.Core, Version=4.303.7965.39135, Culture=neutral, PublicKeyToken=null' at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly) at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext) at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName) at PaintDotNet.Runtime.Loader.TrustedPlatformAssemblyResolver.Load(ILoadContext loadContext, AssemblyName assemblyName, String assemblyPath) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\TrustedPlatformAssemblyResolver.cs:line 101 at PaintDotNet.Runtime.Loader.CombinedAssemblyLoader.Load(ILoadContext loadContext, AssemblyName assemblyName, String assemblyPath) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\CombinedAssemblyLoader.cs:line 47 at PaintDotNet.Runtime.Loader.AssemblyResolver.ResolveAssembly(ILoadContext loadContext, AssemblyName assemblyName) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\AssemblyResolver.cs:line 68 at PaintDotNet.Runtime.Loader.LoadContext.AssemblyLoadContextImpl.Load(AssemblyName assemblyName) in D:\src\pdn\src\PaintDotNet\Runtime\Loader\LoadContext.cs:line 168 at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName) at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName) Quote Link to comment Share on other sites More sharing options...
midora Posted November 4, 2021 Author Share Posted November 4, 2021 Thanks for the hint. And sorry it seems to require paint.net 4.3.3 which is not available now. I had no idea that the loader checks for more than 4.3. Quote Link to comment Share on other sites More sharing options...
Rle Posted November 4, 2021 Share Posted November 4, 2021 👍 don't worry be happy 😉 Quote Link to comment Share on other sites More sharing options...
midora Posted November 4, 2021 Author Share Posted November 4, 2021 Replaced the download with a v1.4 referencing paint.net 4.3.2. Quote Link to comment Share on other sites More sharing options...
Rle Posted November 4, 2021 Share Posted November 4, 2021 Thanks, it works. 👍😎 Quote Link to comment Share on other sites More sharing options...
dotcobalt Posted December 28, 2021 Share Posted December 28, 2021 Is code avaliable? I just want to make a little mod to it. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
midora Posted December 28, 2021 Author Share Posted December 28, 2021 No. But you can ask for a feature or use dotPeek to get the source for your private usage. Quote Link to comment Share on other sites More sharing options...
dotcobalt Posted December 28, 2021 Share Posted December 28, 2021 Oh, ok. I'd like to be able to change the names of the files saved at the zip one. Something like "{layer_name}-{layer_number}.png" (layer-1.png) for example. I'll try to make it decompiling the .dll by myself but I think it would be a nice update to the plugin itself. By the way, I wasn't able to find a nice guide for making my own "FileType" plugin, could you give me a hint? Thanks again. Quote Link to comment Share on other sites More sharing options...
midora Posted December 28, 2021 Author Share Posted December 28, 2021 Rick prefers that save plugins can also load the written files. That's the reason why the names are fixed in the moment. But it may be solved by creating an additional file in the zip defining how the image can be recreated. In this case a pattern (including keywords) for the filenames may be possible. Please use the Plugin Developer's Central to ask questions about developing plugins. Quote Link to comment Share on other sites More sharing options...
Rare Posted January 7, 2022 Share Posted January 7, 2022 If I may request a feature, I would love to see a feature that leaves layer names intact. In general the plugin works great, renaming all the files is just a bit annoying. Thanks for all the effort regardless! Quote Link to comment Share on other sites More sharing options...
midora Posted January 7, 2022 Author Share Posted January 7, 2022 Hi @Rarethe main issue with this request is that layer names may not be unique or they may be empty or they contain characters which are not allowed in file names. So some renaming may be necessary. The additional infos required to restore the pdn content could be stored in the PaintDotNet.txt file in the zip. Quote Link to comment Share on other sites More sharing options...
Rare Posted January 10, 2022 Share Posted January 10, 2022 @midora Makes sense. I appreciate the work you did to bring us what we have already . Cheers! Quote Link to comment Share on other sites More sharing options...
fnab_West Posted March 30, 2022 Share Posted March 30, 2022 I am getting an error when installing: C:\Program Files\paint.net\FileTypes\ImZIP.FileType.dll, version 1.4.0.0 System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. any help? Quote Link to comment Share on other sites More sharing options...
otuncelli Posted March 31, 2022 Share Posted March 31, 2022 @fnab_West You're probably using an old version of Paint.NET. ⚙ Settings -> Updates -> Check Now. Quote Link to comment Share on other sites More sharing options...
ScienceDiscoverer Posted July 19, 2022 Share Posted July 19, 2022 Oh I wish I had this plugin when doing animation in paint.NET few years ago... I did it the hard way =\ 1 Quote Link to comment Share on other sites More sharing options...
CircleBox Posted January 17, 2023 Share Posted January 17, 2023 does this plug in still work? Quote Link to comment Share on other sites More sharing options...
Pixey Posted January 17, 2023 Share Posted January 17, 2023 1 hour ago, CircleBox said: does this plug in still work? Yes Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
CircleBox Posted January 18, 2023 Share Posted January 18, 2023 I can't seem to save as or open up zip files. Quote Link to comment Share on other sites More sharing options...
Pixey Posted January 18, 2023 Share Posted January 18, 2023 34 minutes ago, CircleBox said: I can't seem to save as or open up zip files. Have you looked for it in the 'Save As Type' drop down menu? Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
CircleBox Posted January 18, 2023 Share Posted January 18, 2023 I don't know what I did before, but I have it working now. Thank you for verifying for me that it does work. 1 Quote Link to comment Share on other sites More sharing options...
nitram Posted May 5, 2023 Share Posted May 5, 2023 Awesome plugin, thanks! I understand the difficulty about using just the layer names for the file names, but at least on Windows, the Powershell rename-item command can get the desired names back with a few seconds' work. This will save me much time - just wish I had come across it a few years ago! Quote Link to comment Share on other sites More sharing options...
Tmiv44 Posted August 2, 2023 Share Posted August 2, 2023 Thanks, been looking for this type of feature for a long time... I can't believe I never found it before. -Tully Quote Link to comment Share on other sites More sharing options...
TheGuyTree64 Posted September 25, 2023 Share Posted September 25, 2023 This was so useful! I used to have to have to go back and export every single layer and it would take hours. Thanks and keep up the good work 👍 Quote Link to comment Share on other sites More sharing options...
Wave Maker Posted October 5, 2023 Share Posted October 5, 2023 Made an account just to say thank you. This helps me immensely when making tilesets. 1 Quote 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.