In an image forming apparatus, an image carrier is configured to rotate in
a first direction. An image writer is adapted to irradiate the image
carrier to form an electrostatic latent image thereon. A storage stores
information regarding a factor disturbing the formation of the latent
image in advance. A controller controls the irradiation of the image
writer so as to eliminate the disturbing factor, based on the information
stored in the storage.