Patent ID: 8228552

Claim:
An image recording device, comprising: an output buffer configured to temporarily store image data for one page of a recording medium; an image recording unit configured to record an image on a recording medium in accordance with the image data stored in the output buffer, a processor configured to execute instructions to cause the image recording device to provide: an image generating unit configured to generate output image data based on input image data, the output image data representing an enlarged or reduced version of an image represented by the input image, wherein the image generating unit includes: a first scale factor determining unit configured to determine a first scale factor, the first scale factor being determined such that an amount of the output image data which represents the enlarged or reduced image does not exceed a capacity of the output buffer in the case that the image represented by the input image data is enlarged or reduced by the first scale factor; a second scale factor determining unit configured to determine a second scale factor based on the size of the image and the size of a recordable area in the recording medium; a scale factor determining unit configured to determine a scale factor by which the image represented by the input image data is enlarged or reduced, the scale factor being determined to be a smaller one of the first scale factor and the second scale factor; and an image enlarging/reducing unit that generates the output image data based on the scale factor determined by the scale factor determining unit.