Jump to content

Clean-up: removing unwanted objects


Recommended Posts

I don't know if I am over stepping the rules, by asking a complicated question:

I am using Affinity Photo for Beginners to learn the process.  The instructor uses the Inpainting brush tool to remove objects from images.  However, it isn't working for my needs.  Perhaps I am asking too much from the tool to remove the milkshake cup from my image.  Please advise.Henryjoelali.thumb.jpeg.bd6f04ae41b1fe377e2a28d7ddcc9497.jpeg

Link to comment
Share on other sites

You can ask your most difficult questions on the forum, no rules against it. Lots of knowledgable people here who I am sure will be able to help you out. I tried using the inpainting brush, but think it is a bit to complicated for that tool. Not a power user of the software so no solutions for you. The easy way in photoshop is using generative AI, but unfortunately Affinity does not have this now/yet. This is literally a 1 minute job with AI, and that includes opening the app. 

Link to comment
Share on other sites

Unfortunately, when removing the milkshake, I accidentally spilt it all over the guy's shirt, which didn't look too good, so I had to get him another one.

 

 

 

 

milkshake.jpg

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

@Bobbie Gee I used mainly the Clone/Stamp Tool (shortcut "K") on a new pixel layer, setting it to Current Layer and below. The Inpainting tool is great, but it picked up too many surrounding areas in this image. I did numerous sample points with the clone tool, over and over, to paint out the straw and cup. The Right and Left Arrow Keys come in handy because they allow you to rotate what you selected with the Clone Brush Tool before applying it (you can see a live view before applying it).

That left it a bit blotchy, so I used the Healing Brush tool to clean up the transitions after I was done cloning. I didn't bother finishing it because the purpose was to share how it could be done. It came out fairly well, except I didn't have much of anything for the button-down area of the central character's shirt. You could clone that from another image if you have one, or try to reconstruct it from other portions of his shirt collar.

Screenshot2024-09-27at11_41_21AM.png.5df80fac90bb03fa2ac6334cf1f96913.png

Remove Cup and Straw.afphoto

2024 MacBook Pro M4 Max, 48GB, 1TB SSD, Sequoia OS, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish, Wacom Intuos 4 PTK-640 graphics tablet

Link to comment
Share on other sites

You're welcome. They man in the middle looks a bit like Dick Vitale (basketball sports commentator).

You'll probably need to sample representative points over and over again. Brush hardness makes a difference, so experiment with that. 100% hard clone brush will leave noticeable hard edges, and a 0% hardness tends to cause a lot of blurriness and loss of detail. Try something in the middle, maybe 50-80%. I used the clone brush to do the major reconstruction, then used the Healing Brush (or the InPainting Brush) for cleanup.

 If you Clone/Heal/InPaint on a new pixel layer (non-destructively), you will leave your original intact and unmodified, so you can start again if needed. Good luck.

2024 MacBook Pro M4 Max, 48GB, 1TB SSD, Sequoia OS, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish, Wacom Intuos 4 PTK-640 graphics tablet

Link to comment
Share on other sites

9 minutes ago, wonderings said:

I tried using the inpainting brush, but think it is a bit to complicated for that tool.

One major thing missing from the Inpainting Brush Tool is the ability to restrict the source of the pixels used. In a case like the one currently under discussion, it would obviously be really useful to be able to ignore the people on either side of the guy whose torso is partially obscured by the milkshake cup 

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Link to comment
Share on other sites

2 minutes ago, Alfred said:

One major thing missing from the Inpainting Brush Tool is the ability to restrict the source of the pixels used. In a case like the one currently under discussion, it would obviously be really useful to be able to ignore the people on either side of the guy whose torso is partially obscured by the milkshake cup 

absolutely. I often deconstruct the source layers, make a copy and delete unwanted parts. But pinpointing dies not handle semitransparent areas well and occasionally creates semitransparent results.

Prefer to work with patch tool where you manually select source areas with much more control. Patch tool does the otherwise impossible job of color/lightness blending.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

My posts focus on technical aspects and leave out most of social grease like „maybe“, „in my opinion“, „I might be wrong“ etc. just add copy/paste all these softeners from this signature to make reading more comfortable for you. Otherwise I’m a fine person which respects you and everyone and wants to be respected.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.