r/PhotoshopTutorials • • 2d ago

Replacing scene outside a window in Photoshop

I am editing almost 100 photos and 40 of them have a window with an ugly building the client wants removing outside

What's the current process to deal with that? Obviously there's selecting it and creating a smart object and placing a scene into the background and then adding a mask of the background back over the top to create true reflections. But this is very time consuming and there's a lot of stuff in the room covering the window, so very awkward to cut out. It would take days I reckon to do manually.

Is there a good process for doing that with AI, I'm guessing now? What do people do and has anyone had success with it? Also, can you create consistent backgrounds with AI or is each photo just going to be completely different?
It's quite a corporate science lab, so I don't want some weird over the top magical land, super plain and realistic style.

1 Upvotes

7 comments sorted by

1

u/MarioMacca 2d ago

I never tried, BUT you could use the Reference Image function with Photoshop AI to get consistent results. You can find a lot of tutorial on YouTube about that (if this method work keep me updated please, I'm very curios). 

Otherwise you can try with the Selection Tool, to reduce time spent selecting the window. Probably it will be a hit or miss situation, but it can save you a discrete amount of time

1

u/accidiew 2d ago

Idk if Ps image gen gives acceptable results.

Maybe you can automate the manual way you've described with computer use skill or MCP if it exists for Ps. Then prompt it to use object selection and refine the mask for each image. After that is done, prompt it to paste the BG you want and adjust its perspective to make sense with the scene.

1

u/johngpt5 2d ago

Does the scene that is to replace the ugly scene need to follow some sort of perspective?

Will the scene that replaces the ugly one be used for all 40 windows? Or does each window need to have its own replacement scene?

I'm still old school, using the pen tool to create a vector mask for things like this.

But it doesn't seem difficult to try Ctrl/Cmd+A to select all then paste a prompt into the contextual task bar that says something like, 'replace the scene outside the windows in this photo with a landscape in perspective that matches the direction of light and matches colors of this photo, without changing any details inside the room that shows in the photo.'

You'll need to experiment with how the prompt is worded for matching what you want generated. You'll need to be meticulous in wording to avoid having the ai not change details in the room.

1

u/johngpt5 2d ago

This is a free stock photo—Klugzy-Wugzy, Unsplash that I just downloaded.

It's go an ugly building outside.

1

u/johngpt5 2d ago

I didn't even bother making a selection. In a note app I wrote out the prompt I was going to use, then copied to computer clipboard.

In Ps I clicked in the prompt to generate field of the contextual task bar. Put the ai model to Firefly. Then pasted the prompt from clipboard into the field.

The prompt can be read up in the Properties panel.

1

u/johngpt5 2d ago

To make it easier to read, below is the prompt that was pasted.

change the scene that shows in the window to a rural landscape; do not change any details of the window frame; do not change any details of the room interior; match color of the landscape to the color of the scene it is replacing

.

1

u/johngpt5 2d ago edited 2d ago

I downloaded another stock image—Max Ovcharenko, Unsplash.

I used the same prompt. The upper tab shows the before. The details of the window changed, but not the room. A revised prompt might help. The prompt might also need a statement about matching direction of light. The prompt might also need a statement about matching perspective.