Re: Filtering out a specific color from an image?

Marty Sullivan <[email protected]>
Newsgroups gmane.text.xml.svg.devel
Message-ID <CAK7bDbJ1kfMjvw8cW84befQcmQgxL=H6ot_LbuZ0A7NhW4eFEw@mail.gmail.com>
I have gotten gotten this to work. Basically, I generated a png that had
the areas of the image (a jpeg in this case) that contain the color to
change as black pixels and all other areas as transparent pixels. Then I
did an feComposite using the xor operator on the two images. Success!
although only useful in very limited circumstances, this was a fun thing to
figure out.

On Wed, Oct 10, 2012 at 12:09 PM, Marty Sullivan <[email protected]> wrote:

> Or perhaps I could do this with a <mask> instead?
>
>
> On Wed, Oct 10, 2012 at 9:44 AM, dark3251 <[email protected]> wrote:
>
>> **
>>
>>
>> I am trying to figure out if there would be a way to apply a filter to an
>> image that would filter a specific color and change it. For example, let's
>> say I wanted to apply a filter that would take any pure blue pixels and
>> change its alpha to 0 making it transparent.
>>
>> I've been looking at the feColorMatrix and/or feComponentTransfer but I'm
>> not sure if this could be done with those. Another idea that crossed my
>> mind was feComposite by loading in a pure transparent image and then taking
>> the image to be filtered and somehow making the composite result change
>> just the color I'm looking for.
>>
>> Anyone have any ideas here? It seems like I should be capable of doing
>> this somehow.
>>
>>  
>>
>
>


[Non-text portions of this message have been removed]



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

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.