Skip to main content
Inspiring
May 18, 2017
Answered

Merge nested group into one layer or one smart object

  • May 18, 2017
  • 2 replies
  • 4789 views

PS CC 2017.1.1 x64, Windows.

I have 60+ objects inside my ps document. Each object is a simple assembly: small jpg image (cube) + layer mask (pixels), something like this:

I can put my objects under: A) single group, B) nested group tree, like this:

The result is identical, a simple array of objects over a solid, black layer:

Now I would like to merge my objects (multiple layers) into one layer (including layer masks). Here is what I get after merging (Merge Group or Convert To Smart Object command).

Case A. single group:

I am selecting all objects, right-click, Convert to smart object (or Merge Group). This converts my object (cubes) into one single object, layer masks are applied and everything looks identical to the original state (multiple objects, multiple layers). It looks perfect:

Case B. nested group:

Now, let’s do the same with the nested group. Now, my objects are nested under line 0 copy, line 1 copy, line 2 copy, line 3 copy which are nested under Group 8, Group 7, Group 6, Group 5, B. nested group. I am selecting the top most group inside the nested tree, right-click, Convert to smart object (or Merge Group). And surprise! The new layer (smart objects) differs from the original. Photoshop puts some extra mini-gaps between my objects:

And it seems that the width of those extra gaps depends on how many levels (nested group tree) are merged. For example, if I select Group 7, right-click, Convert to smart object (or Merge Group), I get this – some gaps have been added but its width is smaller:

It seems that Photoshop adds some ‘extras’ at each level of the nested group tree and the difference (in reference to the original state) could be really huge. The result is the same for both: Convert to smart object and Merge Group commands. I’ve also noticed similar behaviour while working with adjustment layers. It does matter whether I apply my adjustment layer to the single or nested group. Each level of nested tree seems to add some tiny modifications and the final results could be different.

Did someone experience the same? is there any workaround to this? As for now the only solution I see is to merge my objects manually, step by step, starting from the very bottom of my nested tree. Or I can write a script. But maybe I am missing something and this can be easily fixed by setting some variables/preferences.

Thank you.

This topic has been closed for replies.
Correct answer PXC

Have you tried restoring Preferences after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved?

https://helpx.adobe.com/photoshop/kb/basic-trouble-shooting-steps.html


got it! It has been related to my Color Settings. Disabling Blend RGB Colors Using Gamma option solves this issue:

Just wondering whether this Blend RGB Colors option should work like this. I mean it shouldn't result in different output for different Layers tree configurations. It seems that Photoshop's Blend RGB Colors algorithm loops recursively through the nested layers tree and the overall effect quickly becomes magnified.

2 replies

c.pfaffenbichler
Community Expert
May 18, 2017

c.pfaffenbichler
Community Expert
May 18, 2017

Does this happen at View > 100%?

When you open the two SO are their contents identical or are the gaps in the second one »real«?

What are the Canvas Sizes of the two SOs when opened?

PXCAuthor
Inspiring
May 18, 2017

a. this happen at any %. this is not a 'display glitch'.

b. No. SOs are different. Single Group Merge (Left) vs Nested Group Merge (Right):

c. 1079px x 698px for both.

PXCAuthorCorrect answer
Inspiring
May 19, 2017

Have you tried restoring Preferences after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved?

https://helpx.adobe.com/photoshop/kb/basic-trouble-shooting-steps.html


got it! It has been related to my Color Settings. Disabling Blend RGB Colors Using Gamma option solves this issue:

Just wondering whether this Blend RGB Colors option should work like this. I mean it shouldn't result in different output for different Layers tree configurations. It seems that Photoshop's Blend RGB Colors algorithm loops recursively through the nested layers tree and the overall effect quickly becomes magnified.