Sign in to follow this  
davidf

Subtract Color plugin (23rd Oct 2012)

Recommended Posts

Effects > Color > Subtract Color

This is one approach to the "color to alpha" idea. The transparency of each pixel depends on how similar its color is to the selected color. The resulting image has the following property: if a layer of the selected color is placed underneath the resulting image, it will look (almost) exactly like the original image.

Suggestions:

  • It is usually better to select an area to remove color from, rather than applying this effect to the whole image.
  • For best results, choose an extreme color (fully saturated, black or white) instead of a color close to an extreme value (e.g. choose RGB (255, 0, 100) rather than RGB (245, 10, 100)).

subtract_color.jpg

The parameters are:

Color - pixels of this color will have the maximum transparency. The closer a pixel's color is to this value, the more transparent it will be.

Function - "subtract color" (the main function), "show alpha as grayscale" (display fully transparent pixels as black, opaque pixels as white and semi-transparent pixels as gray) or "show original image" (for quick comparison).

Tolerance - affects how similar a pixel needs to be to the chosen color to be made transparent.

Tolerance sharpness - degree of "feathering" at the edge of the tolerance value (between transparent and non-transparent pixels).

Alpha intensity - maximum transparency to assign the pixels (100 means fully transparent).

Any feedback welcome!

Download: SubtractColor.zip

(For another plugin with a different approach, see Tanel's Color to Alpha: http://forums.getpai...?showtopic=7767)

Edited by davidf

Share this post


Link to post
Share on other sites

Another useable plug-in davidf, I like it :)

Thanks Nitenurse79 (or should that be Mrs Forum Troll of 2011??). You're always encouraging!

Share this post


Link to post
Share on other sites

Thanks Nitenurse79 (or should that be Mrs Forum Troll of 2011??). You're always encouraging!

Your welcome :)

I hope for a better title in the future, (hint hint) ;)

You can call me whatever you want, just don't call me when I am asleep (or in a bad mood) :lol:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this