An image recording apparatus , comprising: an image acquisition device adapted to acquire a plurality of pieces of image data (PL, PR, PC, PM, P1, Pn) obtained by taking images in different viewing ranges; a selection device adapted to allow selection of whether image data for display output is generated; an aspect ratio designation device adapted to receive designation of an aspect ratio of the image data for display output when generation of image data for display output is selected; a representative image data generating device adapted to generate representative image data from the plurality of pieces of image data according to the designated aspect ratio, wherein the representative image data generating device is adapted to select the representative image data from among the plurality of pieces of image data acquired by the image acquisition device when the aspect ratio is designated to a first aspect ratio of 4:3, and the representative image data generating device is adapted to synthesize the plurality of pieces of image data acquired by the image acquisition device to generate panoramic image data as the representative image data when the aspect ratio is designated to a second aspect ratio of 16:9; an image generating device adapted to generate the image data for display output, wherein the image generating device performs predetermined processing to the representative image data to generate image data for display output; and an image file generating device adapted to generate an image file (D10, D20, D30, D40) which includes an area (A40) for storing the representative image data and an area (A42) for storing the plurality of pieces of image data acquired by the image acquisition device and for storing the image data for display output. an image acquisition device adapted to acquire a plurality of pieces of image data (PL, PR, PC, PM, P1, Pn) obtained by taking images in different viewing ranges; a selection device adapted to allow selection of whether image data for display output is generated; an aspect ratio designation device adapted to receive designation of an aspect ratio of the image data for display output when generation of image data for display output is selected; a representative image data generating device adapted to generate representative image data from the plurality of pieces of image data according to the designated aspect ratio, wherein the representative image data generating device is adapted to select the representative image data from among the plurality of pieces of image data acquired by the image acquisition device when the aspect ratio is designated to a first aspect ratio of 4:3, and the representative image data generating device is adapted to synthesize the plurality of pieces of image data acquired by the image acquisition device to generate panoramic image data as the representative image data when the aspect ratio is designated to a second aspect ratio of 16:9; an image generating device adapted to generate the image data for display output, wherein the image generating device performs predetermined processing to the representative image data to generate image data for display output; and an image file generating device adapted to generate an image file (D10, D20, D30, D40) which includes an area (A40) for storing the representative image data and an area (A42) for storing the plurality of pieces of image data acquired by the image acquisition device and for storing the image data for display output. <EOS>