A component mounting device comprising: a component supply section configured to supply components to be mounted at a specified position of a board; a pickup nozzle configured to pick up a component supplied by the component supply section ; an imaging section configured to acquire image data by imaging a component picked up by the pickup nozzle ; a memory section configured to save the image data imaged by the imaging section ; a condition determining section configured to determine whether a state of an image imaged by the imaging section satisfies specified conditions for high importance with respect to saving the image data, wherein the specified conditions for determining high importance include at least one of a condition indicating that an error has occurred during a process of the component mounting device , or a condition indicating that there is a high likelihood that a work environment will change at the component mounting device ; and a saving control section configured to, in a case in which it is determined by the condition determining section that the conditions for high importance are satisfied, save the image data imaged by the imaging section on the memory section in a first format that is a lossless compression format, and in a case in which it is determined by the condition determining section that the conditions for high importance are not satisfied, save the image data imaged by the imaging section on the memory section in a second format that is a lossy compression format having a higher compression rate than the first format. a component supply section configured to supply components to be mounted at a specified position of a board; a pickup nozzle configured to pick up a component supplied by the component supply section ; an imaging section configured to acquire image data by imaging a component picked up by the pickup nozzle ; a memory section configured to save the image data imaged by the imaging section ; a condition determining section configured to determine whether a state of an image imaged by the imaging section satisfies specified conditions for high importance with respect to saving the image data, wherein the specified conditions for determining high importance include at least one of a condition indicating that an error has occurred during a process of the component mounting device , or a condition indicating that there is a high likelihood that a work environment will change at the component mounting device ; and a condition indicating that an error has occurred during a process of the component mounting device , or a condition indicating that there is a high likelihood that a work environment will change at the component mounting device ; and a saving control section configured to, in a case in which it is determined by the condition determining section that the conditions for high importance are satisfied, save the image data imaged by the imaging section on the memory section in a first format that is a lossless compression format, and in a case in which it is determined by the condition determining section that the conditions for high importance are not satisfied, save the image data imaged by the imaging section on the memory section in a second format that is a lossy compression format having a higher compression rate than the first format. <EOS>