Author Topic: How to identify layers and transparency info in PSD file ??  (Read 10871 times)

mbo

  • Jr. Member
  • **
  • Posts: 10
Re: How to identify layers and transparency info in PSD file ??
« Reply #15 on: May 25, 2018, 10:11:00 AM »
Hello Phil,

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

Marvin

mbo

  • Jr. Member
  • **
  • Posts: 10
Re: How to identify layers and transparency info in PSD file ??
« Reply #16 on: June 05, 2018, 09:48:11 AM »
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

Code: [Select]
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

Code: [Select]
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

Code: [Select]
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

Code: [Select]
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

Code: [Select]
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
« Last Edit: June 05, 2018, 10:53:41 AM by mbo »

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 18370
    • ExifTool Home Page
Re: How to identify layers and transparency info in PSD file ??
« Reply #17 on: June 05, 2018, 09:57:19 AM »
Hi Marvin,

Great.  Thanks for documenting this.

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