Auto straighten scanned photos
Hello dear community
I am looking for a way to automatically straighten scanned photos on a black background.

There is the function “Auto Crop and Straighten”. Unfortunately, this is not useful for my purpose as the images are cropped exactly to the edge and a new document is always created. Is there a way to use this straighten function for an action? Apparently Photoshop has such a function, but unfortunately it is tied to cropping.
I already have an action for cropping.
I hope someone of you knows a good solution for my problem. I appreciate any input.
Best regards
André
