1. An information processing apparatus comprising: clustering means for performing clustering on multiple images so as to more strongly connect the images at a closer distance based on the distances determined by metadata of the images; and grouping means for grouping the images such that the number of images of each group can be equal to or lower than a predetermined number of images in accordance with the strength of connection among the images.