Patent ID: 8294909

Claim:
A data-processing device capable of connecting to a storing unit storing a plurality of image files, each of the plurality of image files including image data and additional information, the data-processing device comprising: an acquiring unit that acquires the additional information from each of the plurality of image files; a creating unit that creates an annexed information set with respect to each of the plurality of image files, the annexed information set including the additional information and identifying information corresponding to the additional information, the identifying information identifying the image file; a determining unit that determines one of a plurality of pieces of the additional information included in the annexed information sets corresponding to the plurality of image files; a recording unit that records, on a recording medium, the image data of the image file identified by the identifying information corresponding to the additional information determined by the determining unit; and an annexed information set storing unit that stores the annexed information sets in the storing unit, wherein the creating unit further comprises: an identifying information storing unit that stores the identifying information when the storing unit is connected to the main body; a determining unit that determines whether or not the annexed information set is stored in the storing unit; a comparing unit that compares the identifying information in the annexed information set with the identifying information in the identifying information storing unit when the determining unit determines that the annexed information set is stored in the storing unit; and a deleting unit that deletes the annexed information set when the identifying information included in the annexed information set is not identical to the identifying information stored in the identifying information storing unit.