Is there a way to find out the number of layers there are in a .psd?
I have .psds that are slowing down terribly. There are 20-30 layer comps and an unknown amount of layers. 1000? 5,0000? I don't know.
The reason for this is to start to ascertain at what point photoshop starts to choke. If I have photoshop use 90 of available memory it quickly hogs up 11GB slowing down my box for other purposes and if I leave it at 50% (7GB) there is a pause when I duplicate even the smallest layer (say a checkmark that goes into a checkbox).
Best Answer
You could use python psdtools package for this: