No announcement yet.

Removing Cracks in Photograph Using Layer Mask

  • Filter
  • Time
  • Show
Clear All
new posts

  • Removing Cracks in Photograph Using Layer Mask


    I am trying to restore an old photograph covered in cracks and speckles. I came across an excellent tutorial here: and many references to Tim Edwards' "Quick Decrack", which seems to run along similar lines, which is how I found myself here!

    I am using Photoshop CS6 and so "Quick Decrack" will not work with this version. I was hoping someone could review the steps below (or you can follow the full tutorial at the link above) and tell me what I am doing wrong in the end!

    Hopefully this will be useful to someone else in the future:

    STEP 1
    Duplicate background and then apply to this layer FILTER/OTHER/MINIMUM
    Now rightclick over layer and change blending options from "normal" to "difference"
    Press Alt-Ctrl-Shift-E to create a merged copy of this layer

    STEP 2
    Make another duplicate background layer (i.e.. another copy of the original image)
    Now apply FILTER/BLUR/GAUSSIAN and blur until no speckles etc are visible

    STEP 3
    OK so far so good we now have 4 layers, namely:

    Background (your original image)
    Duplicate Background 1 (we applied the min and max filters to)
    Merged layer (created when we pressed Alt-Ctrl-Shift-E)
    Duplicate Background 2 (the blurred one!)

    So now we select the merged layer to make active and press Ctrl+a (to select all) and Ctrl+c (to copy all to the clipboard)
    Now we select Duplicate Background 2 and add a layer mask. Once added hold alt and click the layer mask icon in the layers palette (the image will appear as plain white) now press Ctrl-V to paste the merged layer into the layer mask.

    STEP 4
    OK so now I have a layer mask containing every speck and scratch I want to remove (really is amazing!!!) and a blurred image containing the colours I want to use to replace all those specks and scratches with. BUT I DO NOT KNOW WHAT TO DO NEXT?

    Please can someone assist and tell me how to apply the mask so that the lighter areas are replaced with pixels from the blurred image.

    Thanks very much, if someone has ever created a step by step guide to applying Tim Edwards method manually then please direct me to this to, as I would like to give his method a go also. Finally, to remove darker specks and scratches from an image, you reverse the application of the min and max filters in step one above.

    Attached Files

  • #2
    Re: Removing Cracks in Photograph Using Layer Mask

    It seems that you are missing one step indeed.

    Have another look at the mask you created in step 3. It should be white where scratches must be removed, black elsewhere. Instead it is either black or very dark grey. Consequently, the layer will have a very limited effect.

    Now do the following. Make all layers invisible except the background and duplicate background 2. Click the mask (not alt-click because you want to see the image changing while applying the following step).
    Click Image - Adjustments - Threshold. Pick the slider in the middle and move it leftwards. Keep an eye on your image. At some point you will see the scratches disappear. Click OK to confirm when you found the optimal threshold value.

    To see what you just did, alt-click the mask. It has become far more effective.


    • #3
      Re: Removing Cracks in Photograph Using Layer Mask

      Thanks very much for your reply. I followed your helpful instructions and the mask definitely worked better.

      Unfortunately the results were not as good as i hoped, but that may well be my unrealistic expectations! Essentially it just seems to leave you with a different, more unnatural mess to tidy up.

      I attach a before and after image of part of the image together with the layers I ended up with in photoshop in case I have missed something else.
      Attached Files


      • #4
        Re: Removing Cracks in Photograph Using Layer Mask

        Your expectations may be too high but I think that you should be able to improve on this first effort with a little luck and patience. But remember that this technique is only trying to remove the white spots.

        You may also be capturing the print texture and stains which will have to be dealt with seperately.

        You have missed adding a levels layer (this should be created as a clipping layer). Experiment with bringing the black point slider in towards the right as well as the mid point slider adjustments - stop before the white spots go black.

        Your mask should be adjusted so that you have got the spots/dust as bright as possible and the blacks a true black.

        Quick attachment showing how the mask should look and the missing levels layer. Also attached using your posted original and a comparison.

        Although the difference slight it is noticeable and I am betting that working on your original scan you will improve much on my effort on a small jpeg.

        EDIT: BTW Quick Decrack will work in CS6
        Attached Files
        Last edited by Tony W; 11-14-2013, 05:31 PM.


        • #5
          Re: Removing Cracks in Photograph Using Layer Mask

          Thanks for your email and attachments. I can see it is definitely worth some more trial and error and the addition of a levels layer certainly gives more control.

          Another problem, is that the more I use Photoshop the more I feel I have barely scratched the surface, at least this exercise has woken me up to some of the possibilities out there.

          I will give Quick Decrack another go also


          • #6
            Re: Removing Cracks in Photograph Using Layer Mask

            I made a dupe layer, ran Dust and Scratches (Radius=4, Threshold=4) and set that layer to darken mode.
            Attached Files


            Related Topics


            • OhThatGirl2001
              Removing Finger Prints
              by OhThatGirl2001
              Hi All!

              I have been working on a several pictures recently that have finger prints embeded into the picture. The pictures are about 70 years old and have black (mold) like finger prints, or on a few white fingerprints.

              I have tried using a dust and scratch filter and then...
              03-05-2002, 08:51 PM
            • kneff
              Still have a hard time understand masks
              by kneff
              I have gobs of books on Photoshop CS2. I retouch photos, and I see alot of people use masks, but these have got me so confused. I've read the books, I've watch the tutorials, maybe I just need to hear it from someone in simple terms. This is probably a stupid question for alot of you because I know...
              06-16-2007, 03:14 AM
            • Claude
              Getting rid of background
              by Claude
              It is a common problem in microphotography that the illumination of the microscope field is not completely uniform.
              Question: would it be thinkable to take two photos, #1 of the empty field, #2 with the object and combine them in one psd as layers and substract #1 from #2 to get...
              07-25-2003, 04:24 AM
            • DannyRaphael
              Tutorial 03: .Combining Dry Brush and Crosshatch filters
              by DannyRaphael
              In this tutorial I'll deomonstrate how blending the effects of two filters can lead to a better result than an individual filter.

              Photoshop filters used:
              * Artistic > Dry Brush
              * Brush Strokes > Crosshatch

              Techique used: Layer Mask

              03-11-2003, 12:26 AM
            • Shotster
              Create Layer Mask?
              by Shotster
              Is it possible to create a layer mask from a grayscale image in PSE 2.0? I'm referring here to an actual layer mask which has a thumnail within the layer it affects. You can draw into layer masks and manipulate them in many ways, but I can't figure out how to "attach" a grayscale image to...
              11-25-2003, 10:47 AM