Bee Happy Graphics banner.

Changing The Color Of A Signature
In A Signature File

(Color Matching - Part 2)

In a previous blog post (Adding A Signature To Your Image), I discussed three different techniques for adding a signature to your photographs. While discussing two of them, the signature brush and the personal font, I explain how to change the color of the signature. Now I’ll tell you how to change your signature color if you are using a signature file.

As it turns out, I know two ways to accomplish this feat. The simpler technique uses the Paint Bucket Tool, and the second technique adds another Curves layer to the general technique of making the color of one section match the color of another that was introduced in another, even earlier blog post (Color Matching – Part 1). In the first technique the results are more uniform, while the second preserves some of the variability caused by changing pen pressure, texture in the print medium, or other factors. This may or may not be a good thing.

Using the Paint Bucket Tool

  1. On the layer that has the signature with a transparent background, use the Magic Wand Tool. “Sample size” and “tolerance” aren’t important, but “Anti-alias” should be on while “Contiguous” and “Sample All Layers” should be unchecked. Click the tool anywhere in the transparent area.
  2. Go to“Select” on the menu bar and click “Inverse”.
  3. Optional: Also under “Select”, click “Select and Mask...”. In the “Properties” tab, you might benefit from an “Edge Detection” “Radius” of about 4 pixels. Under “Global Refinements”, try a “Smooth” setting of at least 4 and a “Contrast” of around 50%. Feel free to play with these settings. If you need a thicker line in your signature, make “Shift Edge” positive. If it is already too thick, “Shift Edge” a negative amount. Hit “OK” at the bottom of the Properties tab.
  4. Make a new layer. Give it an appropriate name.
  5. Use the Color Picker to select a good Foreground Color.
  6. Use the Paint Bucket Tool to click any point in the selected area.
  7. Deselect the signature.

Using Curves Layers

If you try using the technique described in “Color Matching – Part 1", you will see right away that it doesn’t work here. The reason finally occurred to me; unlike your image, in which you add intensity by letting in more light to a clean black slate, when you write you start with a white canvas and the more pigment you add, the darker it gets. To get this color-matching trick to work, you first need to change your perspective by adding a curves layer to invert the histogram.

  1. With the layer with the signature and transparent background selected and the only layer visible, make a new “Curves...” adjustment layer and name it something like “Invert”.
  2. On this new layer, double click on the curves icon to the left of the layer mask (you could delete the layer mask if you like) so that the histogram appears in the Curves Properties tab.
  3. Click on the teeny square in the lower left corner of the histogram (as shown in red in the following picture) and drag it straight up to the top so that while the “Input” stays at 0, the “Output” will now be 255. Do the opposite for the little box in the upper right corner of the histogram (guided by the green text), dragging it straight to the bottom so that while the “Input” remains a 255, the “Output” will drop to 0.

Curves to Invert Histogram
Using a Curves Layer to Invert the Histogram

  1. Now use the Eyedropper Tool to measure the start and finish colors as in Steps 2 & 3 of the Color Matching instructions. On the signature, I would pick the brightest part with a small sample size and remember to sample all layers.
  2. Continue to follow the instructions of the Color Matching article with Step 4.
  3. When you get to Step 6, you probably will have to adjust the RGB curve. Instead of just raising the middle of the curve as described in Step 6 of the other article, it might be better to raise the whole line by adjusting the little square at each end (as you did in Step 3 above). Sometimes just moving up the dark (left) end of the line works for me.

That’s it. You’re done. Congratulations. This application (changing signature color) can expose the limitations of this color-matching technique, namely, that although it does change all pixels with the start color to the finish color, as the color of the surrounding pixels become less and less like the target pixel, the results may become less and less optimal. We could touch on one of the reasons for that when we discuss the simple and fun house-painting application of this technique (see Visualizing Your New House Color). Stay tuned.