6 Replies Latest reply on Sep 18, 2006 10:16 AM by Newsgroup_User

    Replacing specified colors with others (in depth)

    AarokBomB

      yea, I've been trying to have this answered.... either with some program or technique

      my question is, Is there such a way that you can manipulate an array of colors, where you can choose from a selection of colors, and have them replaced by other colors that may or may not be of that type of color at all.. for example if I had an image that had several types of blues and yellows, and then had another image that had several types of reds and greens, and I wanted the image with red and green to have the exact corresponding colors that the image with blue and yellow has, would it be possible to replace the red and green image with the colors I want to exactly have in it....?

      I know this sounds vague, but its the only way I can word it... maybe if I can explain even further... I'm trying to create a cool little box.. lets just call it my border image for now...It has a certain range of reds in it, and to just name a few colors that are in it, the numbers I read from a couple of them are #511500, #B62A00, and #EA3700... and there are also bright and lighter reds I have in this border image with different transparencies too... alright, say I wanted to merge a completely different image with the curent one, or add onto it, but the colors in this image has colors that my border image doesn't have; just say this picture has different blues, reds, yellows in it... Is there any way, to take the colors in my border image, and somehow exactly replace the colors in the image that I want to have the same colors in the border image..? or there isn't anything out there to do this but only manually replace them, so that both images have the same colors in them..??

      ok... heres just something I made to show an example of what I'm talking about.....



      <IMG hspace=5 src=" http://www.freewebs.com/aarokbomb/JPG/Tut.jpg" border="0">


      Ok... that was just an example... and its in jpeg because I put it like that for an example too... the end picture isn't going to be in jpeg... I know the border needs to have some things changed and played around with... and I know its hard to notice the hair having different colors from the border too; it was just an example....

      ALL I want to know is there any way POSSIBLE to either take any set of colors, to make it so that a complete different picture will have a color change, in the colors I want... Or is there any way to transform a picture to have the colors in the border image... I just want everything to be uniform... it's the way I would like have it, and don't ask what the reasoning or coherency of it is ok... I also know there are plugins out there to replace colors, but are there any that can do multiple colors simultaneously to a whole bunch I want..

      but over all... for the hair example.... say I wanted to make the hair, in number 3, to have the same exact colors that are in the red casing.... how would I be to do that...?? how do I get it so the different shades of yellow, when turned to a red color that the casing has, will correspond to the shading that the red casing has, so that it looks similar to what it looks like.... yeah, it will change, but still, I just want it ( or anything REALLY) to have the same exact colors in the red casing.....

      or.... that isn't possible...??
        • 1. Re: Replacing specified colors with others (in depth)
          JETalmage Level 6
          What you're talking about is replacing the color lookup table of one image with the color lookup table of another. (Do a Google search for CLUT.)

          It's a straightforward process in Photoshop, using the Color Table dialog (Image>Mode>ColorTable). You convert an image to Indexed color mode, save the CLUT, open another image, convert it to Indexed color mode, and load the saved CLUT.

          In Fireworks, open the first image. In the Optimize Palette, create and save a custom color table. Open the other image. Save As. In the Save As dialog, click Options. There you will have opportunity to apply a color table. Navigate to the color table you saved from the other image. Then save. Open the saved image. It will have been rebuilt with the colors from the saved CLUT.

          There may be a more straightforward way to accomplish that in FW; I don't use it much. Perhaps someone else can provide more info.

          JET
          • 2. Re: Replacing specified colors with others (in depth)
            AarokBomB Level 1

            thanks....

            I'll look into CLUT..... I didn't have any idea what it was specifically (that I wanted to do) called.... I'm very sure you answered my question fully.... I can do the rest now...

            • 3. Re: Replacing specified colors with others (in depth)
              AarokBomB Level 1
              alright.... I'm kind of having some trouble doing this now....in the optimize panel in Fireworks.... I saved the Palette, of all the colors I wanted (or so it seemed, idk), and made it so it would be for a PNG 32 file... *is this suppose to be an .act file too?*.... I then took the image, like you said, to have the colors replaced to the ones I saved in custom color table... so I tried loading the .act file I had saved, that had the colors from the other image, but nothing happened... so I tried doing other various types of files..... I tried doing it as a .gif, and it work.... but the thing is I don't want it to be a gif...

              Is there only certain ways that you can load up CLUT files into different pictures or whatever...?? I want this picture to be a .png file too, so is there any way to save the color palette, and load them into these type of files..?? or it can't be done with them..??

              overal, I want this image to be .png files... is there any tutorial or info on this..?? it would be quite helpful...
              • 4. Re: Replacing specified colors with others (in depth)
                Level 7
                In my opinion, you are being overly concerned about exact matches on color
                value. To my eye (which is not expert) you have enough of the same color
                family of reds. I would never notice that they were not coordinated. In
                fact, because color has so many ranges in the real world, a photographer
                would be delighted to find half as good a match. I think you can go with
                what you have and you will be the only one to know it is not perfect. You
                will never map the hair to the color range you want and be able to preserve
                the same brightness and contrast.

                Tony


                • 5. Re: Replacing specified colors with others (in depth)
                  AarokBomB Level 1
                  ok... but now all I'm interested in CLUT's now..... forget everything about the example I was talking about.... its redundant now..... I just need help on how they work..... and how to incorperate them, and any other way, in Fireworks..... thats all...
                  • 6. Re: Replacing specified colors with others (in depth)
                    Level 7
                    I know nothing about them. If you get no responses on this thread, I
                    suggest you start a new one since this one is getting old.

                    Tony

                    "AarokBomB" <webforumsuser@macromedia.com> wrote in message
                    news:eeke4h$s12$1@forums.macromedia.com...
                    > ok... but now all I'm interested in CLUT's now..... forget everything
                    > about the
                    > example I was talking about.... its redundant now..... I just need help on
                    > how
                    > they work..... and how to incorperate them, and any other way, in
                    > Fireworks..... thats all...
                    >