Convert Photoshop Files with ImageMagick
If you want to create a flattened version from multi-layer Photoshop files with the help of ImageMagick use the following command:
convert image.psd image.png
Or for batch converting multiple images:
for i (*.psd) convert $i'' ${i%.*}.png
To refer to the other layers use the numbers greater than 0.
Note that the for loop above was tested with zsh, if ...