{"id":12798,"date":"2019-12-29T01:51:16","date_gmt":"2019-12-29T01:51:16","guid":{"rendered":"https:\/\/www.jurn.link\/dazposer\/?p=12798"},"modified":"2019-12-29T01:51:16","modified_gmt":"2019-12-29T01:51:16","slug":"a-free-solution-to-remove-stray-pixels-from-lineart","status":"publish","type":"post","link":"https:\/\/jurn.link\/dazposer\/index.php\/2019\/12\/29\/a-free-solution-to-remove-stray-pixels-from-lineart\/","title":{"rendered":"A free solution to remove stray pixels from lineart"},"content":{"rendered":"<p>A year ago I posted here about some Photoshop blur-based methods to remove speckles on Poser 11 Firefly renders&#8230;<\/p>\n<p><a href=\"https:\/\/www.jurn.link\/dazposer\/oldimages\/problemspeckles.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.jurn.link\/dazposer\/oldimages\/problemspeckles.jpg\" alt=\"\" width=\"216\" height=\"160\" class=\"alignnone size-full wp-image-12799\" \/><\/a><\/p>\n<blockquote><p>&#8220;As you can see, we have tiny unwanted speckly dots. These tend to appear the closer the camera is to objects or characters, are somewhat uniformly distributed, and are specific to a Firefly line-art render mode and to medium and close-ups camera framing. These speckles have been a long-standing problem with Poser \u2018toon outlines\u2019 renders.&#8221;<\/p><\/blockquote>\n<p>The blur method(s) I proposed worked, but were not ideal. They can damage the integrity of the lineart by making it grey out.  There&#8217;s also an ancient free Polaroid plugin that works, but not on .PNGs and it can often eat into the line edges.<\/p>\n<p>But I&#8217;ve now finally got a robust solution for lineart, after much searching.  It&#8217;s free, and it does not change the lines. <\/p>\n<p>What you want is the free <a href=\"https:\/\/www.getpaint.net\/download.html\">Paint.NET<\/a> graphics software, which runs on Microsoft&#8217;s NET framework and was intended as a replacement for Windows Paint. Then you install its fine <a href=\"http:\/\/jasonmray.com\/code\/removeWhite.html\">Remove White Plugin<\/a> and its <a href=\"https:\/\/forums.getpaint.net\/topic\/26533-stray-pixel-remover\/?tab=comments#comment-529765\">Stray Pixel Remover plugin<\/a>.  <\/p>\n<p>Paint.NET plugins are simple .dll files and are manually installed in its ..\/Effects\/ folder. &#8220;Remove White&#8221; is then found on the Paint.NET menu under Adjustments | Transparency, and &#8220;Stray Pixel&#8221; is found under Effects | Object.<\/p>\n<p>&#8220;Remove White&#8221; knocks out all the white in an image, leaving you with just the line-art and the speckles. &#8220;Stray Pixel&#8221; then examines the image and if it finds stray specks, stray kind-of lines actually made from tiny separate dots, or tiny islands surrounded only by transparent pixels, then it knows they&#8217;re not lines&#8230; and deletes them.  There are adjustable sliders to control the plugin&#8217;s strength.  If you then want the image back on white again, simply add a new layer behind, and fill it with white.<\/p>\n<p>Sadly it&#8217;s not a Photoshop-native solution.  Such a thing does not exist, amazingly, though there are three dead non-working ones from years ago. And Paint.NET doesn&#8217;t have Photoshop&#8217;s record-able Actions, and thus can&#8217;t automate the process into a single click including saving out the cleaned .PNG file.  The best it can do there is the limited filter-automation plugin <a href=\"https:\/\/forums.getpaint.net\/topic\/6091-scriptlab\/\">ScriptLab<\/a>. This will at least save you a few clicks.<\/p>\n<p>This fast and robust solution may also help those bringing hand-drawn line-art into the PC for digital inking, especially if they find their scanner software is not up to the job of removing every single stray dirt speck from the scan.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A year ago I posted here about some Photoshop blur-based methods to remove speckles on Poser 11 Firefly renders&#8230; &#8220;As you can see, we have tiny unwanted speckly dots. These tend to appear the closer the camera is to objects or characters, are somewhat uniformly distributed, and are specific to a Firefly line-art render mode [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,13,9,3,12],"tags":[],"class_list":["post-12798","post","type-post","status-publish","format-standard","hentry","category-automation","category-companion-software","category-freebies","category-poser","category-tutorials"],"_links":{"self":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/12798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/comments?post=12798"}],"version-history":[{"count":0,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/posts\/12798\/revisions"}],"wp:attachment":[{"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/media?parent=12798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/categories?post=12798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jurn.link\/dazposer\/index.php\/wp-json\/wp\/v2\/tags?post=12798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}