Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does one of you know, what is the best and most comfortable way to parse *.psd file from command-line, get all layers and save them all as, say, *.pngs? Preferably in MacOs, Linux or FreeBSD, but Windows is also OK.

share|improve this question

Imagemagick will by default convert a psd to multiple images:

convert file.psd file.png

will result in file-0.png, file-1.png etc for each layer. If you wanted a single image, use the flatten switch:

convert file.psd -flatten file.png

Imagemagick is available on osx, windows and linux. And iOS somehow.

share|improve this answer
while this is true and convert indeed saves psd slides to images - just as it has been asked in the question (so I've upvoted) - in practice the actual output can be broken. For instance, you easily can get something like this - – shabunc Oct 11 '13 at 13:03
my png's are broken too, looks like imagemagick has problems to convert them from the psd with this simple line – 亚历山大 Sep 16 '14 at 10:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.