Export Images Script

The Script
Copy paste this into a text editing program and save it out as a .JSX (such as SRR_Prop_Save.JSX) instead of .txt! function main{
 * 1) target photoshop

if(!documents.length) return;

var doc = activeDocument;

var oldPath = activeDocument.path; var outFolderFullsize = new Folder(oldPath + "/_FULLSIZE_PNGS");

if (!outFolderFullsize.exists) {

outFolderFullsize.create;

} var outFolderGame = new Folder(oldPath + "/_FILES_TO_CHECKIN");

if (!outFolderGame.exists) {

outFolderGame.create;

} var name= NameWithoutExtension(doc.name);

var saveFile100= File(oldPath +"/_FULLSIZE_PNGS/"+name +".png");

var saveFile50= File(oldPath +"/_FILES_TO_CHECKIN/"+name +"@2x.png");

var saveFile25= File(oldPath +"/_FILES_TO_CHECKIN/"+name +".png"); SavePNG100(saveFile100);

SavePNG50(saveFile50);

SavePNG25(saveFile25); app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

} main; function SavePNG100(saveFile){

pngOpts = new PNGSaveOptions;

pngOpts.format = SaveDocumentType.PNG

pngOpts.PNG8 = false;

pngOpts.interlaced = false;

activeDocument.saveAs(saveFile, pngOpts, true, Extension.LOWERCASE);

} function SavePNG50(saveFile){

pngOpts = new PNGSaveOptions;

pngOpts.PNG8 = false;

pngOpts.interlaced = false;

var strtRulerUnits = app.preferences.rulerUnits; //store default ruler units//

//app.preferences.rulerUnits = Units.PIXELS;// change units to pixels

activeDocument.resizeImage(activeDocument.width / 2.0, undefined, activeDocument.height / 2.0, ResampleMethod.BICUBIC);

app.preferences.rulerUnits = strtRulerUnits; //restore to default ruler units//

//activeDocument.saveAs(saveFile, pngOpts, true, Extension.LOWERCASE);//

//}// //function SavePNG25(saveFile){//

//pngOpts = new PNGSaveOptions;//

//pngOpts.PNG8 = false;//

//pngOpts.interlaced = false;//

//var strtRulerUnits = app.preferences.rulerUnits;// store default ruler units

app.preferences.rulerUnits = Units.PIXELS; //change units to pixels//

//activeDocument.resizeImage(activeDocument.width / 2.0, undefined, activeDocument.height / 2.0, ResampleMethod.BICUBICSHARPER);//

//app.preferences.rulerUnits = strtRulerUnits;// restore to default ruler units

activeDocument.saveAs(saveFile, pngOpts, true, Extension.LOWERCASE);

} function NameWithoutExtension(fullName) {

var finalDotPosition = fullName.lastIndexOf( "." ) ;

if ( finalDotPosition > -1 ) {

return fullName.substr( 0, finalDotPosition );

}

return fullName ;

}

=How do?=

So that is the text of a script we developed to save out prop paintings from Photoshop. Importing the JSX file may be different depending on your version of Photoshop, but once you've done that, what it will do is save out the file into two separate folders wherever your image originally exists (the image must be saved before you run the script): one is the FULLSIZE_PNGS folder, which will save a high quality version of your original painting, and the FILES_TO_CHECKIN folder, where your game size files will go and from whence you will drag them into the proper game directory folder.