Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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 - img-fotki.yandex.ru/get/9516/13172528.3/0_b371e_9abbaca4_orig –  shabunc Oct 11 '13 at 13:03
add comment

Your Answer

 
discard

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.