

For the cropping part of the script I just batched all of the images using the trim function. For our website each image needs to be at a 1:1 ratio and cropped.

(If the original author presents themselves I'm happy to credit them. I currently have a large number of png files that are for web use. When the script is called, all pixels on the highlighted layer in the Layer Panel will be forced to the canvas boundaries, regardless of what that does to the original proportions.
MAKING A PHOTOSHOP IMAGE RESIZE SCRIPT INSTALL
BTW, if you really do want to install xtools, you have to run PS with admin privileges. You can either install it manually or as an extension. Just install version v3.2b3 from here: ps-scripts - Browse /Image Processor Pro/v32 betas at. A dialog box will open asking which file you want. After selecting the folder, the script will run so, sit back and wait. A dialog box will open asking which folder you want the script to run on. Note that nothing will be "hidden" using this script. 1 Correct answer xbytor2 Advisor, You don't need install xtools. Select which script file that you want to run. Adobe Photoshop Scripting The resize method in its JavaScript reference guide doesn't seem to cover this (p.64).
MAKING A PHOTOSHOP IMAGE RESIZE SCRIPT HOW TO
Name your action, when you see that the record button is red, you're recording, so don't do anything that you don't want to be done every. 1 How to Batch Resize in Photoshop This doesn't seem to work, so I think a script way might be what I need. Then Create a new action by clicking at the bottom of the action panel. Will move a layer to top left corner of canvas, then resize to fill the canvas, not maintaining any proportion. How to Resize a image file using photoshop script. Layer.resize((/())*100,(/())*100,AnchorPosition.TOPLEFT) Here's the code for your first script - copy and paste this into the main code window on the left: currentdocument app.activeDocument newwidth 670 currentdocument.resizeImage ( UnitValue (newwidth, 'px' ), null, null, ResampleMethod.BICUBIC ) Let's break down what this code is doing. It's been years since I first started using this script. I may have even edited or corrected something else I found. I tried searching for where I may have originally found this script. I struggled, like you, to find something that would not maintain proportions and merely fill the canvas, stretching or squishing as necessary. (Optional) Select Open First Image To Apply Settings to apply the same settings to all the images. You can choose to process any open files, or select a folder of files to process. Choose Tools > Photoshop > Image Processor (Bridge). If you want something to fill the canvas and maintain proportions, this script isn't for you. Choose File > Scripts > Image Processor (Photoshop).
