zeeshanejaz Posted November 28, 2009 Share Posted November 28, 2009 The FileType Plugin to read and write PNM Images MODERATORS NOTE: This effect is incompatible with Paint.NET 4.0x PNMPlugin.zipPNM File TypesPNM is a portable bitmap format used in legacy software. The use of PNM file format is more common in LINUX / UNIX Platform. PNM file format consists of three different file formats namely PBM, PGM and PPM. (Corrections suggested by Andrew Kirillov, thank you.)PBM [Portable Bit Map - Binary]PGM [Portable Grey Map - GreyScale]PPM [Portable Pixel Map - Color]Each of these file formats can be written in ASCII or Binary Encoding. The encoding is determined at reading time against the Identifier each PNM file contains called "Magic Number". This is always the first token of the PNM file."P1" [PBM - ASCII Encoding]"P2" [PGM - ASCII Encoding]"P3" [PPM - ASCII Encoding]"P4" [PBM - Binary Encoding] (not yet implemented)"P5" [PGM - Binary Encoding]"P6" [PPM - Binary Encoding]16-bit ExtensionsThe original definitions of PGM and PNM do not describe 16-bit pixel formats. It has, however been used in many practical situations where accuracy/depth of color information matters. This plugin does not currently support the 16-bit extensions. Quote Link to comment Share on other sites More sharing options...
Bryan1998 Posted December 13, 2009 Share Posted December 13, 2009 Defenitley Should Be Stickied Too Bad Know One Recognized it I'll Post A link Some Where In My Sig So It Gets More Popular Quote Link to comment Share on other sites More sharing options...
Bryan1998 Posted December 14, 2009 Share Posted December 14, 2009 Link Posted Quote Link to comment Share on other sites More sharing options...
trippdoctor Posted December 28, 2009 Share Posted December 28, 2009 File Formats Quote Trippdoctor | PDN Fanatics | Get Paint .NET Link to comment Share on other sites More sharing options...
Lexdysic Posted October 2, 2011 Share Posted October 2, 2011 This is exactly what I was looking for. I like to write ray tracers, and PPM is a brain dead way to dump an image into disk. One bug that I noticed though is that it seems like the red and blue channels are swapped when loading (but not when saving). I tested this with a third party PPM viewer to make sure (just in case there was a bug in my code). Means that if I want to load my images into Paint.NET I actually have to swap my red and blue channels as I am saving so when I load it everything will appear as expected. Quote Link to comment Share on other sites More sharing options...
dfleury2 Posted March 18, 2012 Share Posted March 18, 2012 Since I have the same issue, I have try to correct it. I have used the original plugin, reverse it to made a correction. So I have corrected : PPM P6 format (binary format only, and the size of the combobox when saving an image. Hope it will help somebody. Quote Link to comment Share on other sites More sharing options...
dfleury2 Posted March 18, 2012 Share Posted March 18, 2012 (edited) Here the dll... looks like .rar are forbidden. I have replace the lockbits by a simple SetPixel which is slower but easier to use. I will see if I can go back to LockBits Edited March 18, 2012 by dfleury2 Quote Link to comment Share on other sites More sharing options...
dfleury2 Posted March 18, 2012 Share Posted March 18, 2012 Performance issue corrected. Using lockbits, we have to change RGB to BGR. Thanks for Paint .NET. PNMPlugin.zip Quote Link to comment Share on other sites More sharing options...
dfleury2 Posted March 18, 2012 Share Posted March 18, 2012 Adding a sample to show the error. There is another bug, I can not reproduce when attached to visual, when saving a PPM P6... sample2.zip Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted March 18, 2012 Share Posted March 18, 2012 Thanks for the update dfleury. Can you please remove your earlier versions of the plugin (i.e. edit your post to remove the attachment), leaving just the latest version. Thanks. I'll edit the original post to include your update if someone who uses the filetype can give it a thorough testing for me. Any takers? Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
FriendlyFire Posted April 25, 2012 Share Posted April 25, 2012 (edited) Does this go in File Type or Plugin? The latest version says PMNplugin, but this is used for saving filetypes... Bit confusing IMHO Nvm, confused effects with plugins. Edited April 26, 2012 by FriendlyFire Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted April 26, 2012 Share Posted April 26, 2012 /filetypes/ folder. It's definitely a filetype plugin. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker 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.