Skip to main content
Participant
May 15, 2020
Answered

Does anyone know where to find "Image Processor Pro"

  • May 15, 2020
  • 2 replies
  • 20959 views

Does anyone know where to find and download "Image Processor Pro" from?

Your help will be much appreciated.

I have Photoshop 2020.

Stay safe

Ian

This topic has been closed for replies.
Correct answer Stephen Marsh

Sure: Image Processor Pro / v3_2 betas

2 replies

Inspiring
May 15, 2020

This is one of doc brown's scripts. You can always find his scripts here: Dr. Brown Scripts

Participating Frequently
August 5, 2021

Does this script work? Image Processor Pro / v3_2 betas

Within that folder I do not see Image Processor Pro.jsx  ... instead there are many other files. Would anyone have a link to a tutorial?

Stephen Marsh
Community Expert
Community Expert
November 21, 2021

I used the following script (excuse all the extra notes for myself - I'm a beginner & learning). I ran this script for my templates one-by-one and it worked. I am still trying to work out what I need to change in order for it to work in IPP. Any advice would be appreciated.

 

// FILL LAYER TO CANVAS  

// Ref: JJMack, https://community.adobe.com/t5/photoshop-ecosystem-discussions/scale-layer-to-current-canvas-size-photoshop/td-p/5217315/page/2

var imageLayerWidth = app.activeDocument.width.as('px');  
var imageLayerHeight = app.activeDocument.height.as('px');  
var bounds = app.activeDocument.activeLayer.bounds;  
var LWidth = bounds[2].as('px')-bounds[0].as('px');  
var LHeight = bounds[3].as('px')-bounds[1].as('px'); 

var userResampleMethod = app.preferences.interpolation;  // Save interpolation settings  
app.preferences.interpolation = ResampleMethod.BICUBIC; // resample interpolation bicubic  

if (LWidth / LHeight < imageLayerWidth / imageLayerHeight ) { // if the image layer Aspect Ratio is less than the Canvas area Aspect Ratio   
   
   var percentageChange = ((imageLayerWidth / LWidth) * 100.25);  // Resize to canvas area width  
   activeDocument.activeLayer.resize(percentageChange, percentageChange, AnchorPosition.MIDDLECENTER);  
   }  

else {
   
  var percentageChange = ((imageLayerHeight / LHeight) * 100.25); // Resize to canvas area height  
  
  // resize - pass in horizontal, vertical, anchor in the parameters
  activeDocument.activeLayer.resize(percentageChange, percentageChange, AnchorPosition.MIDDLECENTER);  
   }
   
   // FYI Anchor positions can be:
   	// BOTTOMCENTER, BOTTOMLEFT, BOTTOMRIGHT
   	// MIDDLECENTER, MIDDLELEFT, MIDDLERIGHT
    	// TOPCENTER, TOPLEFT, TOPRIGHT
     
app.preferences.interpolation = userResampleMethod; // Reset interpolation setting  
app.activeDocument.selection.selectAll();

// ALIGN call from function below
align('AdCH'); align('AdCV');
app.activeDocument.selection.deselect();

   // FYI
	/* 
	AdLf = Align Left
	AdRg = Align Right
	AdCH = Align Centre Horizontal
	AdTp = Align Top
	AdBt = Align Bottom
	AdCV = Align Centre Vertical
	*/

// -----------------------------------------
// Align Layers to selection function
// -----------------------------------------
function align(method) {

  var desc = new ActionDescriptor();
  var ref = new ActionReference();
  
  ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
  desc.putReference( charIDToTypeID( "null" ), ref );
  desc.putEnumerated( charIDToTypeID( "Usng" ), charIDToTypeID( "ADSt" ), charIDToTypeID( method ) );
  // FYI charIDToTypeID is a Method with a parameter type of string, returns a number
  
  try {
  
  executeAction( charIDToTypeID( "Algn" ), desc, DialogModes.NO );
 // FYI 'Algn' is an Event ID Code
  	
  } catch(e){}
}
 

I haven't tested, however I would suggest an action for each target size such as:

 

* Presuming a flattened image, convert Background to layer

* Change canvas size to target size, retaining cropped pixels

* Run fill layer to canvas script

* Any other steps required...

 

IPP would then open each image and run the action, saving in the desired file format and naming convention.

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
May 15, 2020
Participant
May 15, 2020

Yo... Thanks