Patent ID: 8237818

Claim:
A camera comprising: an imaging unit that captures a subject image to generate image data; an inserting-image setting unit that sets an inserting image to be inserted into an image of the image data; a first detecting unit that detects a main subject area in the subject image; a second detecting unit that detects a background area in the subject image based on the main subject area; an inserting-area selecting unit that selects an inserting area into which the inserting image is inserted from the background area; a magnification determining unit that determines a magnification for enlargement or reduction of the inserting image in accordance with a size of the inserting area and a size of the inserting image; a priorities decision unit that sets, when there is a plurality of inserting images to be set by the inserting-image setting unit, priorities to the plurality of the inserting images, wherein the inserting-area selecting unit selects a plurality of inserting areas into which the plurality of the inserting images are inserted respectively in a descending order of priorities; and the magnification determining unit determines each magnification in accordance with each size of the plurality of the inserting areas selected by the inserting-area selecting unit and each size of the plurality of the inserting images to be inserted into the plurality of the inserting areas respectively in the descending order of priorities.