Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command line manipulation of PhotoShop images

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.

like image 549
Craig Celeste Avatar asked Jan 18 '12 22:01

Craig Celeste


2 Answers

You've got a few options in your case:

  1. Using variables/datasets in Photoshop
  2. As b3bop, using JavaScript(jsx). Quickest way to get started is to open up ExtendScriptToolkit (should be in the Adobe Utilities),connect to Photoshop and open the Object Model Viewer for Photoshop.If it helps, Photoshop also supports VB on Windows.
  3. CommandLine manipulation via Matlab/Photoshop (though this might be a bit much for your current use case).
like image 57
George Profenza Avatar answered Nov 15 '22 10:11

George Profenza


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/

like image 32
fattjake Avatar answered Nov 15 '22 10:11

fattjake