An image editing device, comprising: A) image data acquisition means (42, 61) configured to acquire a plurality of pieces of image data; B) condition acquiring means (41, 62) configured to acquire one of a condition for a maximum number of pieces of image data to be assigned to each of a plurality of pages and a condition for a number of pages of the plurality of pages; C) reference time interval determination means (51, 71) configured to set, in a first time, a reference time interval with one of a minimum value of intervals between photographed times of adjacent pieces of image data and a minimum unit of photographed times of the image data when the acquired condition is the condition for a number of pages of the plurality of pages and to set, in a first time, a reference time interval with a maximum value of intervals between photographed times of adjacent pieces of image data when the acquired condition is the condition for the maximum number of pieces of image data to be assigned to each of the plurality of pages; D) temporary assignment means (52, 62, 72) configured to determine, based on respective photographed times of the plurality of pieces of image data and the reference time interval, a temporary assignment of the plurality of pieces of image data to each of a plurality of pages constituting a compilation so that an interval between photographed times of pieces of image data to be assigned to the each of the plurality of pages is equal to or smaller than the reference time interval; E) assignment condition determining means (53, 62, 73) configured to determine, when the temporary assignment satisfies the acquired condition, the temporary assignment of the plurality of pieces of image data to the each of the plurality of pages that is performed by the temporary assignment means as an assignment of the plurality of pieces of image data to the each of the plurality of pages; F) wherein the reference time interval determination means (51, 71) is further configured to increase, when the acquired condition is the condition for a number of pages of the plurality of pages, the reference time interval and to decrease, when the acquired condition is the condition for the maximum number of pieces of image data to be assigned to each of the plurality of pages, the reference time interval for repeating the processing for determining the assignment that satisfies the acquired condition; and G) page image output means configured to output image output data on the each of the plurality of pages based on the determined assignment. A) image data acquisition means (42, 61) configured to acquire a plurality of pieces of image data; B) condition acquiring means (41, 62) configured to acquire one of a condition for a maximum number of pieces of image data to be assigned to each of a plurality of pages and a condition for a number of pages of the plurality of pages; C) reference time interval determination means (51, 71) configured to set, in a first time, a reference time interval with one of a minimum value of intervals between photographed times of adjacent pieces of image data and a minimum unit of photographed times of the image data when the acquired condition is the condition for a number of pages of the plurality of pages and to set, in a first time, a reference time interval with a maximum value of intervals between photographed times of adjacent pieces of image data when the acquired condition is the condition for the maximum number of pieces of image data to be assigned to each of the plurality of pages; D) temporary assignment means (52, 62, 72) configured to determine, based on respective photographed times of the plurality of pieces of image data and the reference time interval, a temporary assignment of the plurality of pieces of image data to each of a plurality of pages constituting a compilation so that an interval between photographed times of pieces of image data to be assigned to the each of the plurality of pages is equal to or smaller than the reference time interval; E) assignment condition determining means (53, 62, 73) configured to determine, when the temporary assignment satisfies the acquired condition, the temporary assignment of the plurality of pieces of image data to the each of the plurality of pages that is performed by the temporary assignment means as an assignment of the plurality of pieces of image data to the each of the plurality of pages; F) wherein the reference time interval determination means (51, 71) is further configured to increase, when the acquired condition is the condition for a number of pages of the plurality of pages, the reference time interval and to decrease, when the acquired condition is the condition for the maximum number of pieces of image data to be assigned to each of the plurality of pages, the reference time interval for repeating the processing for determining the assignment that satisfies the acquired condition; and G) page image output means configured to output image output data on the each of the plurality of pages based on the determined assignment.