Patent ID: 8004582

Claim:
An image file processing apparatus comprising: an imaging unit; a first storage unit configured to store an image imaged by the imaging unit; a first data creating unit configured to create at least main image data and sub-image data from the image stored in the first storage unit; a second storage unit configured to store at least the main image data and the sub-image data created by the first data creating unit as one file; a management region setting unit configured to ensure management information of the sub-image data stored in the same file as the main image data in the second storage unit by a predetermined number and set the management information in a management region of the main image data; a first storage control unit configured to perform control so as to store the file based on a content set by the management region setting unit when the file is to be stored in the second storage unit; a second data creating unit configured to create image data from at least one of the image imaged by the imaging unit, the main image data, and the sub-image data; a first determining unit configured to determine whether or not the image data created by the second data creating unit can be included in the file as new sub-image data based on the number of management information set by the management region setting unit; and a second storage control unit configured to perform control so as to additionally store the image data created by the second data creating unit in the second storage unit as the sub-image data and to rewrite a content of the management region when the first determining unit determines that the image data can be included in the file.