According to your screenshots your layers are already raster (bitmap). So:
duplicate your layer (⌘ + J)
Double-click on the newly created layer thumbnail (in the Layers panel) and add a Stroke.
Change the stroke thickness to be whatever size you want the gap to be.
Right-click the layer's name in the Layers panel and select Rasterize Layer Style
Change the ...
A friendly redditor helped me out with the question.
The answer that worked is as follows:
ChicoSuaveIII 12 minutes ago - https://www.reddit.com/r/photoshop/comments/dr71c5/how_do_i_make_an_offset_line_and_then_fill_the/?
Why don't you try this:
1 First, rasterize the image.
2 Use the "Wand Tool" to select the blank area around the two figures.
I suspect that you may have applied some graphic styles/effects to the layer. To fix it, try the following:
Select the problematic layer in the layers panel by targeting it.
Open the Appearance panel (Shift+F6) and remove any strokes, fills, or effects in there. The panel should look like this.
Perhaps I'm a gluten for punishment, but I'd do this simply with additional fills/strokes in the Appearance Panel... and the some transform Effects. This would tie the number to the circle.. and then I'd position them manually.
Select the text with the Selection Tool (Black Arrow)
Add a new Fill in the Appearance Panel
Highlight that new fill and...
Bringing the comments to life the Carlos Cantos's tips + the use of the Script to number the objects(anchors in this case)...
Here are the steps to get what you want, I think.
The code I'm using here. Create a simple txt file. Place the code and save it as .jsx.
var document = app.activeDocument; //Use the current open Ai File
var selected = ...
I found a workaround, make sure all ending nodes of the stroke are curve nodes.
Here's the result with the last stroke being a sharp node
The stroke before expanding:
And after expanding
Now, if we make sure that all end nodes are curve nodes:
Expanding results on this:
Is annoying but is what I found so far.