Question about automating cropping process

finally got the code to work and it’s useless - it just puts the 2 photos together with a lot of white space in between and thr file size is 7kB

Trying the other code with montage