1. An image processing device comprising: a processor configured to provide: an image processing unit configured to perform multiple types of image processing, differing in an amount of pixel loss caused to an image edge, to an image; a specifying unit configured to specify a particular image processing that is to be executed by the image processing unit from the multiple types of image processing; and a target image extending unit configured to extend an area of the image depending on an amount of pixel loss to be caused by the particular image processing specified by the specifying unit so as to obtain an extended area; and a scanning unit configured to acquire the image from a document by scanning the extended area, wherein the image processing unit executes the particular image processing specified by the specifying unit to the image acquired by scanning the extended area.