I have had several hundred old negatives scanned by a local company. I am happy with the quality, but have found they are using a flatbed scanner to scan each strip, and then manually cropping each negative to remove whitespace.
Is there a batch script (PhotoShop etc) that would be smart enough to remove this whitespace from a folder of scanned images? The files each contain a single photograph rather than a strip of 4 side-by-side, however each may have one or two sides with a black edge.
For example (and not the easiest to see here) there is a white border top an bottom and black to the left and right edge:
Update - Thank you for the answers so far. To add a little more detail, the images are not always the same size (dimensions) and the borders can vary depending on the position of the image on the strip of negatives (first, middle 2 or last).