How to identify layers and transparency info in PSD file ??

Started by johncarter, April 16, 2015, 09:40:53 AM

Previous topic - Next topic

mbo

Hello Phil,

many Thanks! I am very happy that it is possible to get this information soon by using ExifTool.

Marvin

mbo

Hello Phil,

i have testes your new ExifTool Version 10.99. The result is great.

I want to document that a little bit for all forum users.


exiftool -LayerNames -LayerUnicodeNames layers.tif


Layer Names                     : Hintergrund, layer 1, layer 2
Layer Unicode Names             : Hintergrund, layer 1, layer 2

The output "Layer Unicode Names" is very useful if special characters are set in layer name. Like german "ä", "ü", or "ö".


exiftool -LayerCount layers.tif


Layer Count                     : 3

With that info it is very simple to check the count of given layers in the file.


exiftool -LayerOpacities -LayerBlendModes layers_opacity.tif


Layer Opacities                 : 100%, 50%, 100%
Layer Blend Modes               : Normal, Screen, Multiply

In Photoshop you can set the layer opacity and a blend mode. See also https://photoblogstop.com/photoshop/photoshop-blend-modes-explained


exiftool -LayerRectangles layers_rectangles.tif


Layer Rectangles                : 0 0 256 256, 0 0 256 256, 0 64 128 192

The last layer "layer 3" is smaller. You can read the coordinates like:
Top left: x=64, y=0
Bottom right: x=192, y=128

All infos you will get using this command:

exiftool -u -"*layer*" layers.tif


Target Layer ID                 : 2
Layers Group Info               : 0 0 0
Layer Groups Enabled ID         : 1 1 1
Layer Selection IDs             : 6
Layer Count                     : 3
Layer Rectangles                : 0 0 256 256, 0 0 256 256, 0 64 128 192
Layer Blend Modes               : Normal, Screen, Multiply
Layer Opacities                 : 100%, 50%, 100%
Layer Names                     : Hintergrund, layer 1, layer 2
Layer Unicode Names             : Hintergrund, layer 1, layer 2
Layer IDs                       : 1, 4, 6
Layer Modify Dates              : 2018:06:05 15:38:27+02:00, 2018:06:05 15:38:27+02:00, 2018:06:05 15:38:27+02:00


So Phil, thanks a lot!

regards, Marvin

Phil Harvey

Hi Marvin,

Great.  Thanks for documenting this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).