Paint.NET

Welcome to the Paint.NET forum!
It is currently Sun Nov 22, 2009 10:49 am

All times are UTC


Forum rules


Questions or problems with plugin installation? Click here.



Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Color to Alpha v2.2 (2008-12-24)
PostPosted: Tue Jan 15, 2008 1:38 pm 
Offline

Joined: Wed Aug 09, 2006 8:37 am
Posts: 177
This plugin extracts a color range from image, by leaving pixels of selected color opaque and making the rest transparent. Only alpha values are altered, color remains intact.
It is useful if you need to edit certain colors on your image separately: duplicate the image layer and run the plugin to get color-based "selection" for further editing.
It is more flexible than Magic Wand or Curves+ which could provide similar results but not always exactly as needed.
Menu location: Effects > Photo.
Download as part of my plugin pack.
Image

Updated to version 2.2 (2008-12-24)!
Changes: few UI and code optimizations; moved to Color submenu.


Updated to version 2.1 (2008-08-31)!
- Compatibility fix for paint.net 3.36


Changes in v2 (2008-01-23):
- Effect is now located in Adjustments menu
- Added check box "Override Original Alpha" (see details below)
- Few minor bugfixes



Use the six color controls (on top) to define your color selection,
and three adjustment controls (on bottom) to adjust the output.
For ease of use, the default color range is defined around primary color. So I suggest to use color picker tool before starting the plugin.

Check box near each color control defines whether you restrict color by this parameter or not. Unchecking equals to selecting the full range.
Tolerance control makes alpha to fade off gradually, based on color's similarity to selected color. Max tolerance makes full alpha gradient from selected color to it's opposite (for example from full bright to full dark, if brightness from 255 to 255 is selected).
Feather control softens edges by blurring alpha channel by selected radius. I recommended to adjust this after all other controls are set, due to heavy impact on processing speed.
Base Opacity control adjusts alpha of "non-selected" color.
Invert Alpha check box inverts final alpha.
Override Original Alpha check box controls how to handle originally transparent/semitransparent pixels:
- unchecked (default) -> transparent pixels remain transparent, even if pixel's color match your selected color
- checked -> transparent pixels turn opaque if pixel's color match your selected color
Reset button returns to default setting (that is: color range from primary color and other controls zero).

Note: greyscale pixels are also treated as color, defined by Hue=0, Saturation=0.


Example:
here I attempted to extract skin tones from the photo. I started with color picker tool and clicked in the middle of his raised arm to get a good color sample. Then opened the plugin, adjusted the color range a bit, finally feathered by amount of 4. Screenshot:
Image

You can learn the behaviour of this plugin on my test image, containing hue, saturation and brightness gradients:
link.

Tip: Feather, Base Opacity and Invert Alpha can be also used independently from color controls (with unchecked Hue/Sat/Brigh); so you may find alternative uses:
- Feather
- Base Opacity: to "un-erase" erased areas
- Invert Alpha: to invert opacity

Enjoy! 8)


Last edited by Tanel on Wed Dec 24, 2008 5:11 pm, edited 6 times in total.

Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Tue Jan 15, 2008 1:55 pm 
Offline
Site Admin, 2008 "Monet" Award Winner, and 2008 King of Paint.NET
User avatar

Joined: Fri Dec 22, 2006 8:29 am
Posts: 5708
Location: http://tinyurl.com/6kqz9v
Awesome! Thanks!

_________________
Image
All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Tue Jan 15, 2008 2:03 pm 
Offline

Joined: Wed Aug 09, 2006 8:37 am
Posts: 177
quick note: I fixed a little UI appearance problem (related to win xp theme) about 10 minutes ago,
you may want to re-download (clean your browser cache before that).


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Tue Jan 15, 2008 2:10 pm 
Offline
Site Admin, 2008 "Monet" Award Winner, and 2008 King of Paint.NET
User avatar

Joined: Fri Dec 22, 2006 8:29 am
Posts: 5708
Location: http://tinyurl.com/6kqz9v
Can you put it in either
Effects->Adjustment ?
or
Effects->Colors ?
or If you can think of a better place?
Thanks.

_________________
Image
All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Tue Jan 15, 2008 2:51 pm 
Offline

Joined: Wed Aug 09, 2006 8:37 am
Posts: 177
Ash wrote:
Can you put it in either
Effects->Adjustment ?
or
Effects->Colors ?
or If you can think of a better place?
Thanks.

I couldn't make my mind on that, so I left it in Effects menu. Maybe I have better idea after some more user comments... :roll:


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Tue Jan 15, 2008 6:55 pm 
Offline
User avatar

Joined: Sat May 26, 2007 2:44 pm
Posts: 809
Location: Portugal
really nice

just a thing what about an UI like the Conditional Hue\Saturation?
you know with the color wheel to show the range..

oh yeah and Adjustments menu too, if you don't mind...

Thanks :D :D

_________________


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Tue Jan 15, 2008 6:56 pm 
Offline
Forum Admin and 2008 "Proton Award" Winner
User avatar

Joined: Tue Feb 06, 2007 9:45 pm
Posts: 9483
Location: Indianapolis, IN (39°46′5.88″N 86°9′29.52″W)
This is really stinkin' cool, Tanel. :-)

_________________


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Tue Jan 15, 2008 8:57 pm 
Offline
User avatar

Joined: Mon May 14, 2007 6:40 pm
Posts: 2403
Location: India! (Where your job got outsourced to ;)!
Yeah, what he said.



:shock:


Finally, a way to cut out antialiased images fast*!

*Key word.

_________________
+_+_+_+_+_+_+_+_+_+_+_+ I am a disco dancer. +_+_+_+_+_+_+_+_+_+_+_+


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Wed Jan 16, 2008 12:34 am 
Offline
User avatar

Joined: Tue May 29, 2007 4:33 pm
Posts: 478
Location: Coruscant
Ash wrote:
Effects->Colors ?
or If you can think of a better place?
Thanks.


Wouldn't it be "Color" (without "s")?
(I just want to avoid to have two submenus with the same meaning.)

I don't care where this fine plugin is located, but I don't think it's an adjustment.


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Wed Jan 16, 2008 4:18 am 
Offline
User avatar

Joined: Tue Jul 17, 2007 2:03 am
Posts: 59
Location: Perth, Australia
Tanel, nice update and great improvements from "Tone Picker", glad to see you took my advice and added the "feather" effect to your plug-in :D .

Geoff

_________________
Image


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Wed Jan 16, 2008 3:13 pm 
Offline

Joined: Wed Aug 09, 2006 8:37 am
Posts: 177
MiguelPereira wrote:
just a thing what about an UI like the Conditional Hue\Saturation?
you know with the color wheel to show the range..
I'm a fan of that color wheel - angle control too, but this is Evan's own creation and I don't want to rip off his code.

MiguelPereira wrote:
oh yeah and Adjustments menu too, if you don't mind...
I tend to agree on Adjustments menu, seems to be more relevant than Effects. I will change it together with other possible fixes in a week or so.


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Wed Jan 16, 2008 6:12 pm 
Offline
I won the "Pauly Shore Award for Unfunniness" and all I got was this lousy rank.
User avatar

Joined: Mon Oct 15, 2007 7:39 pm
Posts: 1689
Location: Greater London, UK
Cool plugin, Tanel!

_________________
Image


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Thu Jan 17, 2008 9:47 am 
Offline
User avatar

Joined: Sat May 26, 2007 2:44 pm
Posts: 809
Location: Portugal
Tanel wrote:
I'm a fan of that color wheel - angle control too, but this is Evan's own creation and I don't want to rip off his code.


isn't that what open source is? something you can use to your own work by 'inspiration' from the work of others, without abusing it of course...

_________________


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Thu Jan 17, 2008 2:20 pm 
Offline
User avatar

Joined: Tue Jul 25, 2006 10:12 pm
Posts: 3118
Location: Rochester, NY
I don't think Conditional Hue and Saturation's source was released.

_________________
Image
Take responsibility for your own intelligence. ;) -Rick Brewster


Top
 Profile  
 
 Post subject: Re: Color to Alpha
PostPosted: Thu Jan 17, 2008 2:44 pm 
Offline

Joined: Wed Aug 09, 2006 8:37 am
Posts: 177
barkbark00 wrote:
I don't think Conditional Hue and Saturation's source was released.
Yes it is, here: http://www.evanolds.com/pdnhs.html
But it is still quite over my head. :?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosted by Forumer & phpBB

Get your Forumer™ today!

Adding a forum to your website is a great way to get return visitors.

» Get your own Free Forum!

Terms of Use

Privacy Policy

Report Abuse

Copyright © 2003-2009 Forumer. All Rights Reserved. | Copyright © paint.NET