Pardon the title not making any sense.
I have a set of images (the total number of images varies), all square (i.e. usually 200 × 200 or 1000 × 1000)
They're sprites for a game, and I need to crop all images to the smallest possible area that still includes all pixels but for all images.
Let's say this image was originally 200 × 200, but when cropped down to only visible pixels, it's 140 × 100,
Let's say this image was originally 200 × 200, but when cropped down to only visible pixels, it's 100 × 140.
I want to crop both these images to 140 × 140, because that's the size that would not crop out any pixels in any image in the set.
I have hundreds of sets of images so manually calculating it like the aforementioned isn't an option. Any suggestions?