PSD layers to PNG, trimming based on opacity of composite image including hidden layers
Posted: 2016-03-17T10:22:27-07:00
I want to export PSD layers to PNG, maintaining the layers' layout (i.e. keeping transparent areas in each one so that stacking them back still produces the original illustration), but still trimming out areas that would be transparent in their composite version including layers which are hidden in the original PSD.
The following command
extracts all layers keeping their layout but
• the composite image of all visible layers is created too, with suffix 0, which I do not need nor want.
• each layer trims areas that are transparent only on itself. I want to trim transparent areas common to all layers, visible and invisible.
This other command
accomplishes the same but trims nothing at all.
The following command
Code: Select all
convert IN.PSD OUT.PNG
• the composite image of all visible layers is created too, with suffix 0, which I do not need nor want.
• each layer trims areas that are transparent only on itself. I want to trim transparent areas common to all layers, visible and invisible.
This other command
Code: Select all
convert IN.PSD -set dispose Background -coalesce OUT.PNG