You are not logged in.
Pages: 1
I am looking for a way to convert a lot of PSD files to PNG format, is there any application or command or script can do this? I also need to resize them when converting.
Thanks a lot!
Offline
I think you can use the convert program that ships along with imagemagick. I believe something like the following should suit your needs.
#!/bin/bash
for i in *psd
do
name=${i%.psd}
convert "$name.psd[0]" -scale XxY "$name.png"
doneThe [0] is required. Otherwise convert will convert every single layer into a separate png file. More documentation about imagemagick here
Last edited by Foucault (2010-11-29 09:51:36)
Offline
I think you can use the convert program that ships along with imagemagick. I believe something like the following should suit your needs.
#!/bin/bash for i in *psd do name=${i%.psd} convert "$name.psd[0]" -scale XxY "$name.png" doneThe [0] is required. Otherwise convert will convert every single layer into a separate png file. More documentation about imagemagick here
Amazing to know there's such an amazing image tool like imagemagick on linux. Beside psd convert, there're a lot of magic uses with imagemagick
When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles
Offline
For future reference, it can be done with GIMP as well through one of the scripting interfaces (I recommend Python) or C plugins. It's not as fast as imagemagick when scripting, but it's far more powerful if one wants to leverage its depth. I do recommend imagemagick for fast, high quality batch jobs. As well, GIMP still lacks high color support, so if that's a real problem, then imagemagick is the better choice.
--EDIT--
That's deep color support, not high color support.
Last edited by skottish (2010-11-30 03:10:58)
Offline
Pages: 1