An image processing method has the steps of: scanning respective pages in
a document; generating respective pieces of image data corresponding to
the pages; identifying respective orientations of isolated images
contained by each of the pages according to a result of character
recognition for the image data; determining whether or not the isolated
images contained by the page have different orientations; assigning
respective ones of the isolated images to new pages; and setting
respective orientations of the isolated images in the new pages as
respective upright orientations of the isolated images.