Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Photoshop Imaegmerge script

Explorer ,
Feb 23, 2016 Feb 23, 2016

I need to do this on Photoshop cs6, I have many folders named like "770_1" , "770_2" , "771_1", etc.

Each folder has 5-15 pictures inside which need to be merged using automerge on Photoshop. The images inside each folder are automerged, and a file named "770_1_merged" , "770_2_merge" etc is created and placed in a folder named "merged_photos".

The photos are either .TIF or .JPG extension Does that sound doable?

TOPICS
Actions and scripting
492
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Feb 27, 2016 Feb 27, 2016

What is giving you problems?

Have you done a Forum search yet?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 27, 2016 Feb 27, 2016

Yeh i have searched several time but have not fond any solution yet. I just want simple photomerge js code, rename can be done by image batch process just need js for image auto merge code...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2016 Feb 28, 2016
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2016 Feb 28, 2016
LATEST

// 2016, use it at your own risk;

#target photoshop

var runphotomergeFromScript = true; // must be before Photomerge include

//@includepath "/Applications/Adobe Photoshop CC 2015/Presets/Scripts/"

//@include "Photomerge.jsx"

//@show include

var psdOpts = new PhotoshopSaveOptions();

psdOpts.embedColorProfile = true;

psdOpts.alphaChannels = true;

psdOpts.layers = true;

var theFolder = Folder(/*insert the folder path here*/);

var files = theFolder.getFiles(/\.(jpg|tif)$/i);

mergeImages(files, psdOpts);

////// perform photomerge //////

function mergeImages(fList, psdOpts) {

   // override Photomerge.jsx settings. Default is "Auto". Uncomment to override the default.

   photomerge.alignmentKey   = "Auto";

   //photomerge.alignmentKey   = "Prsp";

   //photomerge.alignmentKey   = "cylindrical";

   //photomerge.alignmentKey   = "spherical";

   //photomerge.alignmentKey   = "sceneCollage";

   //photomerge.alignmentKey   = "translation"; // "Reposition" in layout dialog

   // other setting that may need to be changed. Defaults below

   photomerge.advancedBlending      = true; // 'Bend Images Together' checkbox in dialog

   photomerge.lensCorrection      = true; // Geometric Distortion Correction'checkbox in dialog

   photomerge.removeVignette      = true; // 'Vignette Removal' checkbox in dialog

   if( fList.length >  0) {

      photomerge.createPanorama(fList,false);

   }

   // The merged doc will be the activeDocument

   activeDocument.saveAs( new File( fList[0].parent.path+"/pano_"+activeDocument.layers[0].name.match(/(.*)\.[^\.]+$/)[1] + ".psd" ) , psdOpts, false, Extension.LOWERCASE);

};

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines