An image forming apparatus includes: a memory connecting portion, to which an external memory is detachably connected; a detecting portion that detects a connection state of the external memory; a printing portion that prints an image based on an image file to be printed which is stored in the external memory; and a controller that performs an automatic printing processing in which the controller controls the printing portion to automatically start printing the image in response to a detection by the detecting portion of connection of the external memory to the memory connecting portion.