How can I automatically resize hundreds of images so that each fits within the same-sized circle?
I have images (icons, in PNG format) with various shapes. I will be compositing these each with an identical circle background. So, I need to resize the images such that all the axes, in every degree, of the shape fits within a circle of specified size.
Most image resizing tools will resize assuming a rectangular shape. With differing shapes, this can result in an image that has been made too small with too much padding to the circle's edge; or that is too large, and overlaps the circle's edge.
What tool (I might use Gimp or Inkscape, but general discussion is also fine) can I use to automatically resize these images to each entirely fit within a circle, with their largest axis in any direction fitting to a specified circle?