Processing large amounts of product images shot on white backdrops is very time consuming and seems like the perfect job for an app/script, but I cannot see anything available that can do this.
If I were able to create a photoshop script it would (presuming a bunch of layers as smart objects)
Create a rectangular selection around the object in the image using a simple luminance threshold value to determine what is object and what is backdrop.
Scale and centre the image so that this bounding box fills the canvas, with a user definable amount of padding.
The image dimensions need to remain constant for all images (or at least the aspect ratio)
(I don't want to 'straighten' anything)
I've attempted to make a start at this with extend script, but I can't see any way to achieve step 1.
Is anyone aware of an existing app or script that can achieve this?