Skip to main content
thrfoto
New Participant
September 15, 2022
Question

Help with script to auto align and crop, then export

  • September 15, 2022
  • 1 reply
  • 291 views

Hello everyone,

I shot a timelapse from the top of my SUV and there is some movement of the camera between shots. I'm trying to write a script to:

1. Open the first image in the folder

2. Use this image as reference to align all of the other images in the folder.

3. Crop all of the images to 16x9

4. Export as tiff layer into another folder.

 

I'm not much of an action/script writer (hence this post).  Thanks in advance for any assistance!

 

Tom

This topic has been closed for replies.

1 reply

Stephen Marsh
Adobe Expert
September 15, 2022

Photoshop has a script for stacking files to layers, which has an option to attempt to auto align:

 

File > Scripts > Load files into stack

 

You can then crop all in one go.

 

There is also a File > Export > Layers to files script if you need separate files rather than a layered file.

thrfoto
thrfotoAuthor
New Participant
September 18, 2022

Thanks Stephen for your response! I'm trying that right now on my M1 Max MacBook Pro and after two solid days it's still going.  The Tifs are about 50MB in size so it's quite a big task.  Is it possible to create a script to use one file as a reference and open each image individually, align to reference file, crop, and save....and then close everything out and repeat the process with the next file?