Jotaf Posted July 30, 2009 Posted July 30, 2009 (edited) This plugin has been updated by @Pratyush. Find the new version here Updated 9/10/2011: Right, it turns out that the original plug-in is no longer compatible with PDN. I fixed it, and also decided to make it open-source! This way I can take contributions to improve this, and maybe it will also help improve other plug-ins with this sort of alpha handling. The code is only a few lines of code long, but it uses (*gasp!*) MATH! Check it out if you're the coder type. The attached zip file includes both the DLL and source code (which you can open with CodeLab). Original post: Hi there! Long time lurker, first time poster. PDN has been my favorite graphics tool for quite some time. There's the old problem of recovering alpha information lost in compositing, for example when you *ahem* borrow images from the web. Say, smooth edge pixels on a black background; you'd prefer if they were transparent. A few plugins are available, and they do OK 90% of the time, but they fall short in recovering the original color information... See, it's not enough to figure out the alpha channel. You also have to use it to change the colors so they will look good when compositing again. Otherwise, there would be a visible halo (the color of the background) around the edge. AFAIK this happens with all existing plugins to eliminate backgrounds. So, I decided to make this one. I've got some pictures to demonstrate the effect and illustrate what I mean about the color correction GrimColorReaper.zip Edited March 2, 2018 by Ego Eram Reputo Added link to new version 2 Quote Jotaf
yy10 Posted July 30, 2009 Posted July 30, 2009 nice plug in. just downloaded it. the problem is, after you kill the colour, there will be some lines around the edges of the images. you should kill those lines too. like the feather plug in Quote deviantART sigs n stuff
yellowman Posted July 30, 2009 Posted July 30, 2009 I like the idea, how could you choose the color that want to kill it, can you post some more screenshots of the plugin GUI please? Quote My GalleryMy YouTube Channel "PDN Tutorials"
Mike Ryan Posted July 30, 2009 Posted July 30, 2009 Can somebody confirm if this is similar to a Color to Alpha plugin? Quote
Leif Posted July 30, 2009 Posted July 30, 2009 I would suggest a slightly deferent name, as there is another plugin with that name. Right now I have two plugins with the same name. Quote My DA: http://leif-j.deviantart.com/ -------------- Some people seek justice so persistent, that they will do great injustice themselves.
pyrochild Posted July 30, 2009 Posted July 30, 2009 You're already using IndirectUI, so why not use the Color Wheel control instead of a dropdown? Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it!
Jotaf Posted July 30, 2009 Author Posted July 30, 2009 Thank you yy10 and yellowman, and everyone else for the feedback! You're already using IndirectUI, so why not use the Color Wheel control instead of a dropdown? I considered it, but then found that for this application it's a waste of space. Most of the time you'll choose the color with the color picker or use a predefined one like black or white; so why would you need the color wheel to adjust it? It would just be ignored. (IMO; unless you guys argue otherwise...) I would suggest a slightly deferent name, as there is another plugin with that name. Right now I have two plugins with the same name. Damn, that's unfortunate. I thought it was original enough. Any suggestions? nice plug in. just downloaded it. the problem is, after you kill the colour, there will be some lines around the edges of the images. you should kill those lines too. like the feather plug in Hm, I don't really know what you mean. It's supposed to eliminate those kinds of artifacts. If some transparent colors remain (ie, small patches of very transparent pixels), you can cut them off automatically with the second slider. Can somebody confirm if this is similar to a Color to Alpha plugin? It's similar to all those plugins, the main advantage is the color correction that prettifies a lot the pixels with modified alpha. See the screenshot (the "no color correction" shot is what you'd get with other plugins). Quote Jotaf
ChronosRegex Posted July 30, 2009 Posted July 30, 2009 I would suggest a slightly deferent name, as there is another plugin with that name. Right now I have two plugins with the same name. Damn, that's unfortunate. I thought it was original enough. Any suggestions? how about Color Murderer? Quote
Jotaf Posted July 30, 2009 Author Posted July 30, 2009 I would suggest a slightly deferent name, as there is another plugin with that name. Right now I have two plugins with the same name. Damn, that's unfortunate. I thought it was original enough. Any suggestions? how about Color Murderer? Good, good. Color Sniper? ("I was thinking about something a bit less blasphemous." -Ned Flanders) Quote Jotaf
Jotaf Posted July 30, 2009 Author Posted July 30, 2009 Let me just leave you with a couple more pics, I hope it's ok :wink: Quote Jotaf
Ego Eram Reputo Posted July 30, 2009 Posted July 30, 2009 I would suggest a slightly deferent name, as there is another plugin with that name. Right now I have two plugins with the same name. Damn, that's unfortunate. I thought it was original enough. Any suggestions? Check the Plugin Index for the current list of plugins. The index has them listed by name and author. BTW: a revision is due out this weekend. Grim Color Reaper ? 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
Jotaf Posted July 31, 2009 Author Posted July 31, 2009 The index has them listed by name and author.BTW: a revision is due out this weekend. Grim Color Reaper ? Hey thanks for the tip! That would be a pimpin' name too, since we're talking about taking that poor color's life. Backgroundless? This is a bit more serious so I'll have to consider it too Feel free to add any more suggestions, I'm afraid I'll be silent for about a week but when I get back I'll change the name to one of those (unless another one pops up in the meanwhile!). Quote Jotaf
ken_dot_pistol Posted August 1, 2009 Posted August 1, 2009 I like this plugin, very nice . could you post the source. please. thnak you. Quote
Alph Tech / STUART Posted August 2, 2009 Posted August 2, 2009 This is basically just chroma key for any color. Why not call it Chroma Key? "Color to Alpha" was another simple suggestion. Is "Isolate" taken? Quote
Ego Eram Reputo Posted August 2, 2009 Posted August 2, 2009 We already have plugins called "Chroma Key" and "Color to Alpha". Check out the latest revision of the plugin index: viewtopic.php?f=16&t=30570 "Isolate Color" might work as we only have "Isolate Lineart", but does this plugin merely isolate or completely extinguish the color? 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
Mike Ryan Posted August 3, 2009 Posted August 3, 2009 Hmm, the plugin has to do with transparency and specific colors, Decolourize? Quote
Jotaf Posted August 11, 2009 Author Posted August 11, 2009 Thanks for all the suggestions, I went with Grim Color Reaper out of a whim mostly (thanks EER!), and also because I didn't wanna waste the cool icon. Unless most of you think it's too silly or there's an even better name around. Oh and it looks good next to a skull icon The code is pretty small, you'll be surprised! What's really special are the formulas for correcting the color, although they're not rocket science. Is there a real interest in seeing the code? If there is, I'll post it whenever I get back to a place with net access again (summer vacations are when I get to detox myself from the internet addiction!). Quote Jotaf
Jotaf Posted August 12, 2009 Author Posted August 12, 2009 does this plugin merely isolate or completely extinguish the color? The idea is that it completely extinguishes the color, not only through alpha but through color modification also. So I tried to convey that through the naming too Quote Jotaf
Alph Tech / STUART Posted August 12, 2009 Posted August 12, 2009 Thanks for all the suggestions, I went with Grim Color Reaper out of a whim mostly (thanks EER!), and also because I didn't wanna waste the cool icon. Unless most of you think it's too silly or there's an even better name around. Oh and it looks good next to a skull icon You should go with just Color Reaper. Quote
Ego Eram Reputo Posted August 13, 2009 Posted August 13, 2009 What's wrong with the "Grim Color Reaper" ? coughmysuggestionandthat'sa16x16imagetoocough 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
Jotaf Posted August 19, 2009 Author Posted August 19, 2009 EER: That is a 16x16 image, thanks! Where did you get it? I found the skull online but had to re-paint over it in order to not steal it, and also because when simply resizing the original it looked funkay! (Since teh pixels change, tis not the same!!1 ) Stuart: Color Reaper is a bit... fanboyish, don't you think? Like your 10-yr-old makes a drawing of a robot with missiles and calls it Color Reaper. Oh well it might be just my imagination! Grim Color Reaper is a nice name IMO, but I'm sure it's not for everyone's taste (what is?). Also, you're welcome gingerfreak, I'm glad you find it useful! Quote Jotaf
Ego Eram Reputo Posted August 19, 2009 Posted August 19, 2009 EER: That is a 16x16 image, thanks! Where did you get it? I whipped it up in PDN of course I quickly sketched the "Reaper" on paper (with a pencil no less) over a 16x16 grid, then transferred that image to a 16x16 canvas in PDN. A bit of colour, antialiasing, duplicate the layer & blurred the lower layer. Flatten & save. That's it really. Please use it with my blessing if you like it. That was my intention in posting it. 1 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
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.