I Like Pi Posted May 3, 2008 Share Posted May 3, 2008 (edited) Moderators Note: This application is incompatible with paint.net v4. See the 'ZIP Archive' FileType Plugin for an alternative. https://forums.getpaint.net/topic/31996-zip-archive-filetype-plugin-zip/ This standalone executable saves each layer in a PDN file as a separate file. IMPORTANT: Unlike most plugins, you should not put this in Paint.NET's effects or filetypes folder. Just put it anywhere and open it by double-clicking. You still need to have a Paint.NET installation, though.Download Compiled EXE:Layer Saver.zip Source Code:License: GNU General Public License (GPL) v3Source Code.zip Edited July 4, 2018 by toe_head2001 Added incompatibility warning. Quote Link to comment Share on other sites More sharing options...
salu Posted May 3, 2008 Share Posted May 3, 2008 ill test it Quote Deviant Art page of cookies I = She Link to comment Share on other sites More sharing options...
Fisherman's Friend Posted May 4, 2008 Share Posted May 4, 2008 Any chance to include it as a filetype plugin (like the OptiPNG EXE)? Quote Link to comment Share on other sites More sharing options...
I Like Pi Posted May 4, 2008 Author Share Posted May 4, 2008 No, using a separate EXE does not grant me any extra power. Anything made through the plugin API will have the same restrictions. Quote Link to comment Share on other sites More sharing options...
kernalphage Posted May 4, 2008 Share Posted May 4, 2008 woah, definitely makes making animated .gifs easier! i don't quite know how else you'd do it... uncheck each layer and re-save it? imageshack is being gimpy right now, so i cant show the finished product, but it streamlines the process a lot when you're using unFREEz. great plugin! Quote Link to comment Share on other sites More sharing options...
thehamster Posted May 12, 2008 Share Posted May 12, 2008 This is awesome. Tested with an animation. Quote my deviant art~~~~~my gallery Link to comment Share on other sites More sharing options...
Halomainaic1234 Posted May 27, 2008 Share Posted May 27, 2008 Where do you put the file, exactly? Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted May 27, 2008 Share Posted May 27, 2008 Where do you put the file, exactly? Unzip it to anywhere and open it. Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 27, 2008 Share Posted May 27, 2008 Alright, first off is that this is a very usefull tool, to say the least. However, I do have some feature requests: The first one is that it would be awesome if the file names actually represented the Layer names. I had to rename fourty odd files the other day even though the Layer Names represented the actualy name I wanted. Second is that it would also be nice to allow us to determine the filetype on a 'Per Layer' basis, or at least a filter of some sorts. For instance, If I have a huge .PDN file, I only want the images with transparency to be saved as a .PNG, while all of the others only deserve the menace that is the .JPG. Thanks! Quote Link to comment Share on other sites More sharing options...
I Like Pi Posted May 28, 2008 Author Share Posted May 28, 2008 The first one is that it would be awesome if the file names actually represented the Layer names.I like this idea, but what should it do if it encounters two layers with the same name or a layer with an illegal file name?Second is that it would also be nice to allow us to determine the filetype on a 'Per Layer' basis, or at least a filter of some sorts. For instance, If I have a huge .PDN file, I only want the images with transparency to be saved as a .PNG, while all of the others only deserve the menace that is the .JPG. Thanks!I don't think such a feature would be useful, for several reasons. [*:lw0b0xba]PNG supports a format without transparency. This is what happens with MS Paint and PDN's 24 bit mode.[*:lw0b0xba]The best file type depends more on the content of the image than whether it has an alpha channel. For example, saving plain text on a white background as a JPEG would result in noticeable compression artifacts. Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted May 28, 2008 Share Posted May 28, 2008 The first one is that it would be awesome if the file names actually represented the Layer names.I like this idea, but what should it do if it encounters two layers with the same name or a layer with an illegal file name? I would suggest a naming convention such as: "1 background.png" as this would allow layers to be sorted by name in order of layer index as well as deal with naming problems. Just my 20 pence. Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 28, 2008 Share Posted May 28, 2008 The first one is that it would be awesome if the file names actually represented the Layer names.I like this idea, but what should it do if it encounters two layers with the same name or a layer with an illegal file name? Do as Sabrown has mentioned, or remove the illegal characters, or just do a naming process such as Background-1, Background-2, Background-3, etc.. that way the order is still able to be remembered. Second is that it would also be nice to allow us to determine the filetype on a 'Per Layer' basis, or at least a filter of some sorts. For instance, If I have a huge .PDN file, I only want the images with transparency to be saved as a .PNG, while all of the others only deserve the menace that is the .JPG. Thanks!I don't think such a feature would be useful, for several reasons. [*:23gxf85t]PNG supports a format without transparency. This is what happens with MS Paint and PDN's 24 bit mode.[*:23gxf85t]The best file type depends more on the content of the image than whether it has an alpha channel. For example, saving plain text on a white background as a JPEG would result in noticeable compression artifacts. PNG supports a format with transparency, actually. If it is to difficult, then just scratch it. Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted May 28, 2008 Share Posted May 28, 2008 or just do a naming process such as Background-1, Background-2, Background-3, etc.. that way the order is still able to be remembered. Personally, I disagree. With the numbers first they can easily be sorted by layer number. Just my 20 pence. Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 28, 2008 Share Posted May 28, 2008 So are you saying something like 1-Background, 2-Cutout, 3-EverythingElse, etc? I dont have a problem with that as it does keep everything in proper order, and the names are still used. Quote Link to comment Share on other sites More sharing options...
I Like Pi Posted May 28, 2008 Author Share Posted May 28, 2008 PNG supports a format with transparency, actually. If it is to difficult, then just scratch it.I think you misunderstood what I said. PNG supports formats with an alpha channel and without an alpha channel, so there's no need to switch to JPG for layers without transparency to save space.I've added in preliminary support for naming conflict resolution, custom naming formats, and file type plugins. My OptiPNG plugin is incompatible, so sometime later I'll look for the problem. Layer Saver.zip Quote Link to comment Share on other sites More sharing options...
Ash Posted May 29, 2008 Share Posted May 29, 2008 Myabe put everything in the 1st post? Thanks. Quote All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ] Link to comment Share on other sites More sharing options...
I Like Pi Posted May 29, 2008 Author Share Posted May 29, 2008 Since that was a preview version which has a known problem and may undergo revision, I don't want to put it on the first post just yet. Quote Link to comment Share on other sites More sharing options...
Ash Posted May 30, 2008 Share Posted May 30, 2008 I see your point. :Nod: Quote All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ] Link to comment Share on other sites More sharing options...
ThatFALGuy Posted June 6, 2008 Share Posted June 6, 2008 Hello. I hate this to be my first post on this forum, but the Layer Saver is not working for me. It is returning an error and is not saving properly. Instead of the many layers that I am trying to save, I get one named "0" that is empty. It is also, I dunno, distorted? Save Configuration comes up when I choose either jpg or gif format, maybe others, but when it shows it is cut off as in the pic. What I am attempting to do is transform a 61 layer .pdn to 61 individual .gif images for use in UnFreez. I think I have entered everything correctly, but may well not have. I expanded the LS to show my paths and such. This is the newer DL you have. I had the same issues with the one from the first post, read the whole thread and thought it was just something buggy in the first DL. Specs on the images: Currently in .pdn form. 61 layers starting with layer name 1, ending at 61. not sure on file size, but all are small, 200x150'ish. Layer Saver was DL'd to my desktop and extracted there. Here is a screenshot of the Layer Saver error and how/what I have configured: And error message: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at PaintDotNet.GifSaveConfigWidget.InitTokenFromWidget() at PaintDotNet.SaveConfigWidget.OnLoad(EventArgs e) at System.Windows.Forms.UserControl.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.SetVisibleCore(Boolean value) at System.Windows.Forms.Control.set_Visible(Boolean value) at ILikePi.FileTypes.LayerSaver.LayerSaver.format_SelectedIndexChanged(Object sender, EventArgs e) at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m) at System.Windows.Forms.ComboBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- Layer Saver Assembly Version: 8.5.29.0 Win32 Version: 8.5.29.0 CodeBase: file:///C:/Documents%20and%20Settings/Sean/Desktop/Layer%20Saver.exe ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- PaintDotNet.Core Assembly Version: 3.22.2933.24442 Win32 Version: 3.22.2933.24442 CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.Core.dll ---------------------------------------- PaintDotNet.Data Assembly Version: 3.22.2933.24442 Win32 Version: 3.22.2933.24442 CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.Data.dll ---------------------------------------- PaintDotNet.SystemLayer Assembly Version: 3.22.2933.24441 Win32 Version: 3.22.2933.24441 CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.SystemLayer.DLL ---------------------------------------- DdsFileType Assembly Version: 1.11.2933.24444 Win32 Version: 1.11.2933.24444 CodeBase: file:///C:/Program%20Files/Paint.NET/FileTypes/DdsFileType.dll ---------------------------------------- PaintDotNet.Resources Assembly Version: 3.22.2933.24441 Win32 Version: 3.22.2933.24441 CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.Resources.DLL ---------------------------------------- wmdggq6c Assembly Version: 0.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- 6x41wwj_ Assembly Version: 0.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- PaintDotNet.Base Assembly Version: 3.22.2933.24440 Win32 Version: 3.22.2933.24440 CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.Base.DLL ---------------------------------------- System.Runtime.Serialization.Formatters.Soap Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/2.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box. I really hope it is only something I am doing wrong as this program additive is just the ticket for what I need. Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted June 6, 2008 Share Posted June 6, 2008 Yes, it is something you are doing wrong In the second text feild, notice how you placed a '.GIF' at the end of your folder name. Your folder name does not have a filetype, so just remove that extra tid bit and you should be just fine. Quote Link to comment Share on other sites More sharing options...
ThatFALGuy Posted June 6, 2008 Share Posted June 6, 2008 Actually, you can't really see, or more so it looks like it is .gif, but it is not. Full name of the folder is Second Amend gif, I name each folder to know which format is contained in it like that. After seeing the photo last night when posting though, I wondered if just maybe it was something like that, a miscommunication between the LS and my machine so removed the gif at the end anyway. Now it is just plain Second Amend and still has the same issues. Damn I wish it were that easy that I had just made such a simple mistake like that, as I am accustomed to such tings What, if anything would I enter in the Save Configuration area as that is cut off. I am able to write in it, I just have no clue what format goes there nor can I see what is already written there. Are there any other fields below that that I am missing/not having access to due to the cutoff? Yes, I r newb. Quote Link to comment Share on other sites More sharing options...
I Like Pi Posted June 7, 2008 Author Share Posted June 7, 2008 I'm not 100% sure, but the only thing I can think of is your Paint.NET version, which is 3.22. Try updating to 3.31. Quote Link to comment Share on other sites More sharing options...
ThatFALGuy Posted June 9, 2008 Share Posted June 9, 2008 That was the ticket, had not even thought of checking my version, knew it had to be something pretty basic. Thank you for the help and for the program as well, this rocks! Quote Link to comment Share on other sites More sharing options...
Criptych Posted October 16, 2008 Share Posted October 16, 2008 I've been looking for something exactly like this recently, almost tried to write one myself... But when I open it, it won't run, I just get this error message: System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Program Files\Paint.NET\PdnLib.dll' or one of its dependencies. The system cannot find the file specified. File name: 'file:///C:\Program Files\Paint.NET\PdnLib.dll' at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at ILikePi.FileTypes.LayerSaver.Program.b__0(Object sender, ResolveEventArgs args) I have Paint.NET 3.36 installed, and I checked the program's folder, but the file doesn't exist (of course). Where can I find it, since it apparently didn't install with Paint.NET? Quote Link to comment Share on other sites More sharing options...
MiguelPereira Posted October 16, 2008 Share Posted October 16, 2008 You'll have to reinstall paint.net Quote [The stock on my sig is a photo I took not a render from Splatter] [My deviantART][My Gallery][My Space] 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.