Jump to content
How to Install Plugins ×
Paint.NET 5.1 is now available! ×

Recommended Posts

Posted (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

post-59750-131830720943_thumb.jpg

post-59750-131830729087_thumb.jpg

post-59750-131830729863_thumb.jpg

Edited by Ego Eram Reputo
Added link to new version
  • Upvote 2

Jotaf

Posted

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

deviantART

sigs n stuff

Posted

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.

My DA: http://leif-j.deviantart.com/

--------------

Some people seek justice so persistent, that they will do great injustice themselves.

Posted

You're already using IndirectUI, so why not use the Color Wheel control instead of a dropdown?

xZYt6wl.png

ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Posted

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).

Jotaf

Posted
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? :D

14lim10.png

Posted
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? :D

Good, good. Color Sniper? :lol:

("I was thinking about something a bit less blasphemous." -Ned Flanders)

Jotaf

Posted
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 ? :D

Posted
The index has them listed by name and author.

BTW: a revision is due out this weekend.

Grim Color Reaper ? :D

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!).

Jotaf

Posted

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?

  • 2 weeks later...
Posted

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 :D

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!).

Jotaf

Posted
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 :)

Jotaf

Posted
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 :D

You should go with just Color Reaper.

Posted

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 :mrgreen: )

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!

Jotaf

Posted
EER: That is a 16x16 image, thanks! Where did you get it?

I whipped it up in PDN of course :D

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.

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...