jimh12345 Posted May 30, 2023 Posted May 30, 2023 Here's an image I'm working on: a composite of several shots of a bird in flight. They've all been processed identically but of course as I followed the bird and took shots, the sky varied slightly. Each photo is on a separate layer. Now I need to get a uniform sky behind all the birds. Yes, I could outline each one with the Selection Brush tool, refine the selection and cut out the bird, but that could be tedious; feathers are tough. Obviously I'd like to select by a color range - get all those blues at once - but If I remember right, AP doesn't have an easy, direct way to do that. Does it? Or can anyone suggest another clever way to select all these similar blues and either delete those pixels, or force them to a common color? Quote
v_kyr Posted May 30, 2023 Posted May 30, 2023 I could imagine various different procedures here. - But the fastest is probably to use the Flood Fill Tool at a tolerance of ~20% and fill the whole with the main blue background color. Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
jimh12345 Posted May 30, 2023 Author Posted May 30, 2023 Yes, tweaking the tolerance on flood fill is a good idea, I'll try it. Still wish there was a direct way to select by color range. Quote
v_kyr Posted May 31, 2023 Posted May 31, 2023 37 minutes ago, jimh12345 said: Yes, tweaking the tolerance on flood fill is a good idea, I'll try it. When you do so, check that nothing from the birds wings etc. which contains some similar blue color is overwritten. Therefor (to prevent this) make a quick add+ brush selection of all the affected bird parts and invert the selection afterwards. So any maybe critical bird parts are excluded from the selection and only the image backgrounds are selected, then apply the blue flood fill on the selected background. Also try out which flood fill tolerance value setup works best for you here. Quote Still wish there was a direct way to select by color range. See also related for selections: Selections Creating pixel selections Overview By painting By flooding By drawing By range By layer content/luminosity From channels From a sampled colour Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
NotMyFault Posted May 31, 2023 Posted May 31, 2023 7 hours ago, jimh12345 said: Yes, tweaking the tolerance on flood fill is a good idea, I'll try it. Still wish there was a direct way to select by color range. There are multiple possibilities: select sampled color + tolerance hue range mask (and convert to selection), allows to define range and width of edges (transition selected / not selected) flood selection tool + tolerance for compositions like this, you may use stacking (without ghost removal), and suitable stack mode Quote 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.
NotMyFault Posted May 31, 2023 Posted May 31, 2023 6 hours ago, v_kyr said: When you do so, check that nothing from the birds wings etc. which contains some similar blue color is overwritten. For a composition like this, the visual difference may be irrelevant. Otherwise correct. Quote 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.
jimh12345 Posted May 31, 2023 Author Posted May 31, 2023 v_kyr, I didn't realize "select by sampled color" had a tolerance slider that can be used to refine the selection. I tried this and at first, thought it would be enough on its own. I select a layer for one of the birds, "select by sampled color", adjust the tolerance and get a nice tight selection around the bird. But the selection doesn't work like it should. First off, I apparently can't Refine it. So I just hit Delete and at first it looks like the blue on that layer is gone, but I find it's not completely removed, as if all those "selected" pixels weren't really selected, or some sort of transparency is in effect. Attached screen capture shows what I'm left with after the Delete. This is useless. I tried using the Eraser to wipe out everything in the selection. And what I found out is that the dashed border showing the "selection" is really only approximate, because I lost some of the bird that way. Some pixels inside that border aren't really "selected" and some outside of the border are. So, I had to be careful with the Eraser. But even with the Eraser set at 100% I found that multiple passes were necessary to completely remove the pixels. IMHO "Select Sampled Color" is just a mess. AP needs a proper tool for selecting by color range. Quote
jimh12345 Posted May 31, 2023 Author Posted May 31, 2023 I'm not big on sky replacement - I think it's a vice. But in this case, I have a totally empty sky, and a totally synthetic image composition, so I'd like to try putting in a few clouds. And it seems like AP just has nothing in its tool box to facilitate sky replacement in complex situations. While I don't want AP to start adding bogus "AI" features, the difficulty of selecting a blue sky really surprises me. Surely, I'm missing something here. Quote
NotMyFault Posted May 31, 2023 Posted May 31, 2023 3 hours ago, jimh12345 said: I'm not big on sky replacement - I think it's a vice. But in this case, I have a totally empty sky, and a totally synthetic image composition, so I'd like to try putting in a few clouds. And it seems like AP just has nothing in its tool box to facilitate sky replacement in complex situations. While I don't want AP to start adding bogus "AI" features, the difficulty of selecting a blue sky really surprises me. Surely, I'm missing something here. Your criticism is unfounded. There are official tutorial videos for sky replacements, sky image resources (bonus content or shop) for those who don’t have a sky image at hands or search in stock images, and the process is quite simple if you follow one of the tutorials. i personally made a few compositions of birds or moon and planes with sky. Just learn the workflows, it is no 1-click function. Quote 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.
NotMyFault Posted May 31, 2023 Posted May 31, 2023 (edited) It took me 2 minutes to make a good selection and sky replacement. Have a pixel layer use flood selection tool, lower tolerance use add mode to get all sky if needed, switch to selection brush and refine tool (I didn’t) add mask invert mask add sky image from stock adjust layer sequence Edited June 18, 2023 by NotMyFault Video removed due to später restrictions Quote 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.
v_kyr Posted May 31, 2023 Posted May 31, 2023 3 hours ago, jimh12345 said: And it seems like AP just has nothing in its tool box to facilitate sky replacement in complex situations. They once (former APh v1.6 or 1.7 times) had free bundled the "Uplift Epic skies pack" (sky images + APh macro + usage tutorial etc.) with APh. - Nowadays you would use the Stock Panel to search and add some sky/cloud backgrounds etc. Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
jimh12345 Posted May 31, 2023 Author Posted May 31, 2023 24 minutes ago, NotMyFault said: Your criticism is unfounded. There are official tutorial videos for sky replacements, sky image resources (bonus content or shop) for those who don’t have a sky image at hands or search in stock images, and the process is quite simple if you follow one of the tutorials. i personally made a few compositions of birds or moon and planes with sky. Just learn the workflows, it is no 1-click function. I'll check that out. Quote
jimh12345 Posted May 31, 2023 Author Posted May 31, 2023 1 hour ago, NotMyFault said: It took me 2 minutes to make a good selection and sky replacement. Have a pixel layer use flood selection tool, lower tolerance use add mode to get all sky if needed, switch to selection brush and refine tool (I didn’t) add mask invert mask add sky image from stock adjust layer sequence RPReplay_Final1685560392.mov RPReplay_Final1685560392.mov Not getting this. Flood fill doesn't create a selection, and just replacing a solid blue sky with a different solid color isn't really "sky replacement". How do you get from flood fill, to a mask for the sky? Quote
v_kyr Posted May 31, 2023 Posted May 31, 2023 8 minutes ago, jimh12345 said: Not getting this. Flood fill doesn't create a selection, ... See again what NotMyFault wrote under point 2., aka Flood selection tool and not Flood fill tool. Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
jimh12345 Posted June 1, 2023 Author Posted June 1, 2023 Aha - so there' a "Flood Selection" tool. That could be the answer. Quote
Recommended Posts
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.