News for hackers. Stuff that matters.
Re:Psd.rb by jdboyd on Tuesday July 30, 2013 @05:14PM (#6130101)
But this way I don't have to keep paying $20/mo to Adobe CC so that I can run the script again next month.
Re:Psd.rb by jlgreco on Tuesday July 30, 2013 @05:20PM (#6130146)
I suspect that you could probably also manage it with GIMP/guile, but I don't suspect it would be particularly pleasant.
Re:Psd.rb by _delirium on Tuesday July 30, 2013 @05:59PM (#6130330)
If you want to script it, ImageMagick or GraphicsMagick are probably a better bet than trying to hack up something with GIMP batch processing: http://www.imagemagick.com/www/formats.html

If you just want to do basic conversion ignoring layers, it's quite easy:

   for f in *.psd; do
     convert "$f" "${f%%.psd}.png"
   done
Re:Psd.rb by picomancer on Tuesday July 30, 2013 @06:40PM (#6130598)
You can use find/xargs for this. It'll be faster because you can parallelize it with the -P option, for example, for a 4-core machine:

    find . -iname "*.psd" -print0 | xargs -0 -P 4 -n 1 -I I convert I I.png
For best results, change the number "4" in the above command to the number of cores you have.
Re:Psd.rb by neeee on Tuesday July 30, 2013 @08:02PM (#6130979)
The same with GNU Parallel, only it picks the right number of cores automatically and removes .psd from the file name:

  find . -iname "*.psd" -print0 | parallel -0 convert '{}' '{.}.png'
Re:Psd.rb by jlgreco on Tuesday July 30, 2013 @06:44PM (#6130617)
Oh excellent, I didn't know ImageMagick did PSD.
Re:Psd.rb by toble on Tuesday July 30, 2013 @06:27PM (#6130516)
Gimp's support for PSD is understandably poor for the more advanced/modern features, so I wouldn't rely on it without being able to compare the output to something else. I use Apple's Preview utility to manually compare results.