1. An image processing apparatus comprising: an image obtaining portion that obtains an image including a code, the code representing a location of a web page; a web page obtaining portion that obtains the web page based on the code included in the obtained image; a calculation portion that compares the obtained image except the code with the obtained web page to calculate a degree of relevance between the obtained image except the code and the obtained web page; and a print controller that issues a command to print the obtained image with the code excluded if the degree of relevance is lower than a predetermined threshold, and to print the obtained image without excluding the code if the degree of relevance is equal to or greater than the predetermined threshold.