Hi guys,
nice to notice, that there is some interest.
I will put together a more detailed 'how to', when I find some time. But first, here is the main part. The Photoshop script that does the artwork... This should get you going if you have some basic Photoshop skills. I figured it out and I am a Photoshop noob... So it should not be that hard..
main ();
alert ("Done!");
function main ()
{
if (0 < app.documents.length)
{
alert ("Please close all open documents before running this script.");
return;
}
// Use folder selection dialogs to get the location of the input files
// and where to save the new output files.
var sourceFolder = Folder.selectDialog ("Please choose the location of the source snapshot image files.", Folder.myDocuments);
var sourceMarqueeFolder = Folder.selectDialog ("Please choose the location of the source marquee image files.", sourceFolder);
var destFolder = Folder.selectDialog ("Please choose a location where the new image files will be saved.", sourceFolder);
var files = sourceFolder.getFiles();
var marqueefiles = sourceMarqueeFolder.getFiles();
for (var i = 0; i < files.length; i++)
{
var f = files[i];
if (f instanceof Folder)
continue;
// open the background file
var backgroundFile = File(sourceMarqueeFolder + "/background.psd");
var background = app.open (backgroundFile);
// open the snapshot file
var doc = app.open (f);
// open the marquee file. If none exists then open noMarquee.png to use instead
var marqueeFile = File(sourceMarqueeFolder + "/" + File.decode (f.name));
if(marqueeFile.exists)
{
var marquee = app.open (marqueeFile);
}
else
{
var marqueeFile = File(sourceMarqueeFolder + "/noMarquee.png");
var marquee = app.open (marqueeFile);
}
// call the action to tilt the images and merge them. This can be replaced with your own creations for a layout...
app.doAction ('Zusammenfügen', 'Arcade Snapshot Kopie') ;
app.doAction ('Ausschneiden', 'Arcade Snapshot Kopie') ;
// save the result file
var saveFile = File(destFolder + "/" + File.decode (f.name));
SavePNG(saveFile);
// close all documents and start over again
activeDocument.close(SaveOptions.DONOTSAVECHANGES);
doc.close (SaveOptions.DONOTSAVECHANGES);
marquee.close (SaveOptions.DONOTSAVECHANGES);
background.close (SaveOptions.DONOTSAVECHANGES);
}
}
function SavePNG(saveFile)
{
pngSaveOptions = new PNGSaveOptions();
activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);
}
The script can easily be modified to fit your own layout needs...
I don't know much about Photoshop scripts, so be careful to use it. Try it on a couple of images first, before you let it go on the whole 28.000 or so files...
What the script does:
- ask where the snapshots are located
- ask where the marquees are located
- ask where the new files should be saved
- open them, do a Photoshop action, save the result in a new file
All that needs to be done by a script, because a simple Photoshop action or a batch manipulation alone can't do it.
Tell me if you have any problems. maybe I can help...