I found a script online that turns my images into a square (by extending the canvas size of the short side to match the length of the long side) which is awesome, but I would like to do an additional step and I have no scripting experience so hopefully someone can help.
now that my images are square I want to set a maximum dimension of 2500x2500 px, i have found scripts to set a resolution to a specific size but what I want to make sure I avoid is upsampling, so I just want any image larger than 2500x2500 px to down sample to 2500x2500 px
any knowledge on the code for this would be much appreciated.
There is a Forum dedicated to Photoshop Scripting – actually more than one, but one at forums.adobe.com …
And you may want to post the code you use so far.
Photoshop shipts with a plug-in script that will do that for you. its found under menu File>Automate>Fit Image. Set both width and height to 2500 and check do not resize images that fit so your small square images will not be resized up in size. You could also just create an action that uses both scripts
step 1 menu File>Scripts>Make canvas Square.
setp 2 menu File>Automate>Fit Image. The 2500 x 2500 no upsize option settings will be recorded into the step and when the action is used its dialog will be bypassed and the recorded settings will ne used.
You can then batch the action using menu file>Automate>Batch or menu File>Scripts>Image Processor.
Europe, Middle East and Africa