Are there any tools for editing PhotoShop files from a command line?
I would like to add steps to our automated build process (MS Build) that takes original PhotoShop files that our artists make and produce .png files; I'm looking at a very few operations like photoshop-to-png, resize and possibly showing/hiding layers. I haven't had a lot of luck finding a tool I can use for this.
If it is possible to script this with Photoshop itself, or a Photoshop utility, that'd be awesome.
ImageMagick, GraphicsMagick (a fork of the former; for the former you would use the
convert
CLI, for the latter you would invokegm convert
), nConvert, Krita CLI, and probably a Gimp CLI, or GMIC--these can all accomplish this.All will accept a Photoshop file as input, and output virtually (if not actually) the entire range of existing image formats (including Photoshop).
Ive never done this, but I believe you can control PS with JavaScript. You might find this document helpful: http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop_cs5_scripting_guide.pdf
I know that you are looking to use Photoshop, but one non-photoshop option is an open source tool called Image Magick. It has a command line tool that is extremely flexible.
http://www.imagemagick.org/
You've got a few options in your case: