1. A method for naming an image file, the method comprising: searching for a keyword string in initial scan image data, and identifying an encoded string after the keyword string; and generating an initial file corresponding to the initial scan image data, wherein if the keyword string is found, a file name of the initial file is automatically set up according to the encoded string.