I need to do the following thing. Having multiple png files in folder with a naming convention set: 1.png 1_m.png, 2.png 2_m.png (and so on). The png files have the same width and height (320 x 360 px).
Now the script should do the following:
take the files 1.png 1_m.png and create a new file in which the 1_m.png is placed on the left and 1.png on the right merge those two on one layer and save it as lets say 1_done.png, run this action on all files in the folder.
This doesn't have to be a Photoshop script I've searched the web but couldn't find any useful solution. Also nothing is set in stone here, the files could be in different folders what ever would be the simplest solution. My Photoshop version is CS5
I would do this with ImageMagick which is available for free for Windows, OSX and Linux - in fact it is installed on most Linux distros anyway.
The crux of it is to use ImageMagick's
convert
command to append two images side by side, basically like this:So the script looks like this - (nearly half of it is comments):
If we start with images like this:
and
It will generate this for all pairs:
This script will do what you want. Put all the files in a directory and then run the script using automate batch -> script. It'll find an image without and underscore in the the file-name and then open it's paired name file (with "_m"), put them side by side and save it out with _done added on to the file-name.
//pref pixels app.preferences.rulerUnits = Units.PIXELS;