MJW Posted March 23, 2019 Share Posted March 23, 2019 The DLL: Object Pruner.zip Object Pruner is in the Object submenu. ======================================== Object Pruner conditionally erases objects based on their sizes. Objects are connected regions of non-transparent pixels. The size of each object is compared to the size of the largest object. Objects that fall outside the minimum and maximum bounds are erased. The size of each object is the number of pixels in the object. With the default settings, all objects except the largest object will be erased. The controls are: Minimum Size of Objects to Keep (Relative to Largest Object): Specifies the minimum size for objects that should be kept, relative to size of the largest object. Maximum Size of Objects to Keep (Relative to Largest Object): Specifies the maximum size for objects that should be kept, relative to size of the largest object. (If this value is less than one, the largest object will be erased.) Transparent Color for Erased Objects: Specifies the transparent color that replaces the pixel color for erased objects. The choices are Transparent White, Transparent Black, or the original pixel color with the alpha value set to zero. Show Objects as Colors (Green = Keep; Red = Erase): Specifies that objects which will be kept should be shown as green, objects which will be erased should be shown as red, and originally-transparent background pixels should be shown as white. This is a debug feature that should normally be disabled before exiting. Because all pixels are shown as opaque, this option can be useful for discovering low-opacity pixels that connect what appear to be separate objects. The user Interface: ======================================== I'm not sure how useful it is. The main purpose is to handle a situation I've encountered when trying to remove a non-uniform background color with the Magic Wand. I select the background color, but there are small scattered regions of the background that don't get selected. Increasing the Magic Wand tolerance results in parts the foreground being selected. If I erase the selected background, I'm left with unerased areas. Ideally, after erasing most of the background, I could just select the foreground with a low-tolerance Magic Wand, invert the selection, and erase the background completely. However, I'm often unable to find a tolerance that completely selects the foreground without selecting the entire image. The Object Pruner is intended to help erase all the scattered regions remaining after erasing most of the background. Since I wrote it, naturally it has more options than it probably needs. 3 3 Quote Link to comment Share on other sites More sharing options...
HyReZ Posted March 23, 2019 Share Posted March 23, 2019 Thank you! I just added it now. I hope it will quickly eliminate the tiny artifacts that are left after using the Wand Tool. Often they are revealed only after I add a drop shadow or a glow. I will try it sometime this weekend! Quote Link to comment Share on other sites More sharing options...
Pixey Posted March 23, 2019 Share Posted March 23, 2019 Downloaded! I only wish I could have had a pruner like this when I had a garden 🌼 1 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...
Seerose Posted March 23, 2019 Share Posted March 23, 2019 @MJW! Thank you for sharing this with us! Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
homebrew Posted March 25, 2019 Share Posted March 25, 2019 you mean there is a lack of tools in paint.net; since the magic wand is no more used even in photoshop Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted March 25, 2019 Share Posted March 25, 2019 I have no idea what you're talking about @homebrew Did anyone mention a lack of tools? 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...
Hypure Posted March 31, 2019 Share Posted March 31, 2019 excellent, good one! 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.