I have hundreds of product image layers and I am trying to resize them all to the same height (ignoring the width) and retaining their individual aspect ratio's.

Is there a script available that does this? Or a feature I am unaware of?


  • 1
    Can you please show some sample images that show exactly what you are trying to do. Are the images currently all different dimensions? It might have been better to batch resize them before you put them in layers.
    – Billy Kerr
    Commented Oct 1, 2017 at 16:51

1 Answer 1


What you are trying to do can be done with actions and batch.

  • (1) Go to your actions tab (Window>Actions if its not already on your workspace).

  • (2) (a.) Create a new action set. (b.) Create a new action.

  • (3) Rename it and hit record.
  • (4) Your action should be recording.
  • (5) Change your image size: You will first want to check your resolution to make sure each image is the same, otherwise if you combine your images into the same document, they will still be different sizes. (c.) Make sure your aspect ratio is locked. And change your height dimensions.
  • Click ok.
  • (6) (d.) Go back to the action panel and press stop (Square button to the left of the record)

enter image description here

Now you can do a batch automation.

  • (1) Go to File>Automate>Batch
  • (2) Make sure your new action is selected. Chose your source folder (The location of the images you wish to change)
  • You can just save the document and close or chose a new destination folder.
  • Now you can just let it do its thing.

enter image description here

I'm not sure what you meant by image layers though. (It sounds like you are talking about layers in a particular document??) Above, I'm assuming you have a folder full of images of all different dimensions and want to resize them so that every image is height = x.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.