An image forming apparatus comprising: a photoconductor drum; a latent-image forming device including a light source and configured to scan a surface of the photoconductor drum with light from the light source in a main-scanning direction to form a latent image on the surface; a developing device configured to develop the latent image into a developed image; and a density detecting device configured to detect densities at a plurality of positions in the main-scanning direction on the developed image; characterised by a processing device configured to acquire at least two light-amount correction tables respectively associated with at least two positions of the plurality of positions in the main-scanning direction on the developed image, the light-amount correction tables being for reducing density variations in a sub-scanning direction at the at least two positions, and correct, for each scan, a set point for setting an amount of light of the light source based on a difference in corresponding correction data between two light-amount correction tables respectively associated with two adjacent positions of the at least two light-amount correction tables, wherein the correction data is generated based on deviation in the main-scanning direction between the light-amount correction tables. a photoconductor drum; a latent-image forming device including a light source and configured to scan a surface of the photoconductor drum with light from the light source in a main-scanning direction to form a latent image on the surface; a developing device configured to develop the latent image into a developed image; and a density detecting device configured to detect densities at a plurality of positions in the main-scanning direction on the developed image; characterised by a processing device configured to acquire at least two light-amount correction tables respectively associated with at least two positions of the plurality of positions in the main-scanning direction on the developed image, the light-amount correction tables being for reducing density variations in a sub-scanning direction at the at least two positions, and correct, for each scan, a set point for setting an amount of light of the light source based on a difference in corresponding correction data between two light-amount correction tables respectively associated with two adjacent positions of the at least two light-amount correction tables, wherein the correction data is generated based on deviation in the main-scanning direction between the light-amount correction tables. acquire at least two light-amount correction tables respectively associated with at least two positions of the plurality of positions in the main-scanning direction on the developed image, the light-amount correction tables being for reducing density variations in a sub-scanning direction at the at least two positions, and correct, for each scan, a set point for setting an amount of light of the light source based on a difference in corresponding correction data between two light-amount correction tables respectively associated with two adjacent positions of the at least two light-amount correction tables, wherein the correction data is generated based on deviation in the main-scanning direction between the light-amount correction tables.