Patent attributes
An image processing apparatus includes a setting unit setting the number of pieces of image data to be selected, an identifying unit identifying, based on a photographing date and time of each piece of image data of an image data group, a photographing period of the image data group, a dividing unit dividing the identified photographing period into a plurality of photographing sections, a selection unit selecting image data from an image data group corresponding to a target photographing section based on predetermined criteria, and a generation unit generating a layout image by arranging an image based on the selected image data, wherein selection of image data is repeated by setting an unselected photographing section as a next target photographing section to select a number of pieces of image data corresponding to the set number, and wherein the number of photographing sections is determined according to the set number.