1

I want to create a layer for each animal in the below image. my approach is by lasso tool selecting each animal then cut and paste it. This cause new layer is created. I want to know that is there any option in Photoshop to do it automatically?

enter image description here

  • 2
    There's no option to do it automatically. Photoshop can't see and doesn't know anything about how to separate objects. Perhaps a script that can employ some kind of AI could do it. – Billy Kerr Jun 12 at 8:16
1

I've made a script for that — Split Layer to Islands — it's a part of a free scripts pack Scriptorator:

enter image description here

Note that in your file assets seem to be quite close to each other so maybe you'd require to upscale the image to 400% or 800% using the Nearest Neighbour sampling method before splitting the layers. Then you can resize it back using the same method to keep the pixels intact:

  • My test file:

enter image description here

  • Resizing to 800% using the Nearest Neighbour:

enter image description here

  • After running the script and resizing the image back to original the image looks the same but layers are separated:

enter image description here

| improve this answer | |
  • 1
    +1 very nice Sergey – Billy Kerr Jun 17 at 11:36
1

As already said by others Photoshop has no function like "decide and make a new selection which contains the next object in this single layer bitmap image"

But you can generate a script or even record an action which lets you to click the next shape and after it does the rest for you. You click a shape and press a function key to run your action. I tried the action recording for this.

You can select a shape against transparent background with the magic wand which has tolerance=255. The action cuts the selection, pastes it, moves the appeared new layer to the bottom in the layers panel, reselects the top layer and that's that. The action stops and lets you select with the magic wand the next shape. You press the starting key to process it.

In the next image shape A is clicked with the magic wand:

enter image description here

Pressing function key F3 runs my action "separate" which moves the selected shape to the bottom layer. After running it and making 3 more selection+runs I got the next result:

enter image description here

The shapes accumulate to the center because the shapes are pasted, not pasted in place.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.