Avatar of judekuipers
judekuipers
 asked on

Make a mask layer from an object, remove pattern from an object and still keep original shading/highlights so you can insert a new pattern.

Say you have a picture of a man in a floral shirt. (I know, tacky, but just imagine for this question.)

I'm looking to remove the pattern (floral), while keeping the original highlights & shadows.

I would like to make this a new linked and/or mask layer so that I can insert a new pattern for the shirt, say plaid (not much better I know), and still have the realistic original shading/highlights.

The layer must be done in a way so that I can insert a regular jpg of the new fabric into the new layer as opposed to applying something from the pattern palate. I don't want to make the jpg a pattern and then do it that way because I will need to re-size and/or rotate the new fabric picture.

I've been trying this myself for a long time and can't figure it out.
Adobe Creative Suite CS

Avatar of undefined
Last Comment
judekuipers

8/22/2022 - Mon
BongSoo

The reason you can't figure it out is because the information that is stored in the file that shows the highlights and shadows of the shirt is not separate from the information that shows the pattern. Its all the same information. That said, you MIGHT be able to tease some of that information out by looking at individual channels, or converting to grayscale and then playing with levels or retouching out the pattern, but my guess is its not worth the time and effort. Good luck, and let us know if you figure out a way that works!

BongSoo
judekuipers

ASKER
I know it can be done because I have several of them that have been completed. I would like to learn how to do it myself instead of having someone do it for me.
BongSoo

OK, well I have some ideas then. What color space are your images starting out in?
Your help has saved me hundreds of hours of internet surfing.
fblack61
judekuipers

ASKER
JPEG, RGB.
BongSoo

That might make it a little easier then. I was thinking high resolution CMYK for printing. OK, here is what I would try first, and I am oversimplifying in some places, but you will get the gist and be able to determine if this works for you or not pretty quickly, I think.

a) Isolate the highlight shadows.
   1) Convert the file to grayscale and determine if this keeps the level of detail you want. If not, you can try converting to LAB color and looking at the individual Lightness channel and see if that gives you a better grayscale image. Either way, you will probably need to do some heavy retouching to remove the pattern from the cloth. (I am assuming you have used the cloning tool, if not let me know).

b) test the detail of combined images
  1) You can then test this against the new pattern by converting it back to RGB, and putting the pattern and grayscale (now RGB grayscale) image in a new document and playing with the Multiply (overprint) and Opacity settings to see if this will hold the detail you want.

You will then need to use a combination of masking of both layers and combining that with the above into your final layered file, (always keep a separate copy of your layered file, and your final flattened file), but lets see if this gets you close to what you want.

BongSoo
judekuipers

ASKER
The pattern is really small and not really clone-able. ??
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
BongSoo

You could try to blur it - select the area and try Gausian Blur (filter).

BongSoo
judekuipers

ASKER
Ok, tried that. Interesting. But I need to add the pattern at full opacity and when doing this, the shadows/highlights are gone.
BongSoo

Use Multiply. That should add them at full opacity.

BongSoo
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
judekuipers

ASKER
I must be missing something then? I have one layer, masking into it...
BongSoo

I misunderstood. You will have to play with the blurring so that it doesn't do away with your shadow/highlight detail. You may even have to mask out different parts and do them separately using a density mask.
judekuipers

ASKER
This is much more complicated than anticipated!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
BongSoo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
BongSoo

judekuipers, did this ever get resolved or work out for you?
judekuipers

ASKER
I was able to figure out how to do the mask and multiply, but the blending made the shadows unreal...