An image forming apparatus including a light source unit configured to
emit a light beam, an optical deflector configured to generate a scanning
light beam from the light beam of the light source unit, an optical
writer having an optical system configured to guide the scanning light
beam from the optical deflector onto a surface to be scanned of image
carriers and forming an image thereon: and a memory unit to store a
plurality of shading correction data that is configured to correct a
light shading caused by a light loss between the light beam and the
scanning light beam due to accumulation of dirt on the optical deflector.