Skip to main content
petere21960639
Inspiring
March 7, 2019
Answered

LAYER FRINGING

  • March 7, 2019
  • 4 replies
  • 1469 views

Hi, this seems like a very basic issue but I'm having difficulty resolving it.

I am copying a layer in Photoshop (simple black lines about 25 pixels thick) adjusting this layer (brightening and colour correcting) and then laying it over the top of the matching uncorrected original layer.

I need to erase some but not all of the top corrected layer and keep both layers in the final image.

The problem is fringing and an apparent size change in the corrected layer. The top corrected layer is smaller than the layer below (several pixels) and this results in the bottom layer appearing around the top layer as fringing. At 100% the fringing is still perceptible.

The original layer is extremely contrasty (just black) with no soft edges. Feathering or bleed of the image should not be a problem. I have tried various image adjustment methods but all seem to produce a size shift in the corrected layer. I have even inverted the image, but the top white lines are still fringed by the black layer below. Viewing the corrected layer on its own looks fine but when the layer below is made visible, it pops around the edges of the top layer.

It could be that the correction is dropping pixels or resizing the layer? Any ideas?

Thanks.

    This topic has been closed for replies.
    Correct answer c.pfaffenbichler

    For the Mask of the Solid Collar Layer you can completely disregard the transparency of the Layer, it’s Clipping Masked to it and therefore won’t exceed it anyway. 

    4 replies

    @mj
    Community Expert
    Community Expert
    March 7, 2019

    Looks like anti-aliasing at work.

    • Make you selection of the lines
    • Choose Select and Mask
    • Add a bit of feather and smoothing
    • Move the Shift Edge slider to the left which should clip out the fringe.
    • If you still have some fringing, choose the Decontaminate Colors switch
    • Save out as new layer with layer mask
    • If you still have s slight fringe, you can shrink grow the mask by choosing Image > Adjust > Levels
    • Move the midtone slider left/right as needed till you get the result you're happy with
    petere21960639
    Inspiring
    March 7, 2019

    Thanks Master mo,

    I can give it a go but there are many lines and the images I've been posting are really zoomed in. I fear making a mask will be tricky as the lines are thin and all over the final image.

    c.pfaffenbichler
    Community Expert
    c.pfaffenbichlerCommunity ExpertCorrect answer
    Community Expert
    March 7, 2019

    For the Mask of the Solid Collar Layer you can completely disregard the transparency of the Layer, it’s Clipping Masked to it and therefore won’t exceed it anyway. 

    c.pfaffenbichler
    Community Expert
    Community Expert
    March 7, 2019

    Or please make this test:

    Apply

    Layer > Layer Mask > From Transparency

    then view the Layer Mask – are there pixels that are not fully black or filly white?

    petere21960639
    Inspiring
    March 7, 2019

    Yes, not all layers are fully black.

    This looks like the same issue and could solve the problem:

    How do I set a Photoshop image to just pure black and white, no grayscale? - Graphic Design Stack Exchange

    c.pfaffenbichler
    Community Expert
    Community Expert
    March 7, 2019

    But wouldn’t he following suffice for your original intention:

    Clipping Mask a Solid Color Layer of the intended new/other Color to the Layer and add a Layer Mask to that?

    Edit:

    c.pfaffenbichler
    Community Expert
    Community Expert
    March 7, 2019
    The original layer is extremely contrasty (just black) with no soft edges. Feathering or bleed of the image should not be a problem.

    Sorry, I had missed that sentence.

    But even if there was no feathering maybe there was Anti-aliasing or if it as created with a Brush the tip may still have had a minuscule soft edge.

    Could you please provide the file with just that Layer for testing?

    petere21960639
    Inspiring
    March 7, 2019

    Thanks, you're right.

    Although I've crushed the lines to extremes, there are still some edge pixels that are not completely R G B, 0 0 0.

    As the lines are organic, with variations, I need to figure out how to eliminate all pixels that are not 100% black or convert partially transparent pixels to 100% black.

    Trevor.Dennis
    Community Expert
    Community Expert
    March 7, 2019

    How did you copy the layer?

    Did you just use Ctrl J (Cmd J)

    Is it the entire layer or  does it have areas of transparency?

    Was there an active selection?

    If yes, did the selection have any feathering?

    I think this would be easier if we could see a screen shot of your workspace.

    Copy the entire screen area to the clipboard.  Have the layers panel visible with the problem layer selected. Also have the history panel visible.

    Paste it here with Ctrl V (Cmd V)

    petere21960639
    Inspiring
    March 7, 2019

    Hi Trevor, thanks for getting back.

    I simply Duplicated Layer

    The effect happens over entire layer

    No active selection

    In the screenshot attached, I duplicated the original black layer and then Inverted it. In the image you can see the original black layer appearing around the top layer. To some extent, it is dependant on the colour of the base layer, but on my artwork it was visible.

    Thanks, Pete.

    c.pfaffenbichler
    Community Expert
    Community Expert
    March 7, 2019

    If I understand your problem might be a misunderstanding on your part.

    If a Layer has soft edges (pixels that are neither completely transparent nor completely solid) duplicating the Layer and Filling it with some other color while maintaining the transparency will naturally result in those semi-transparent pixels overlapping.

    And a white pixel with X% transparency over a black pixel with X% transparency results in a grey pixel of (X + (100-X) * (X/100))  % transparency.