Patent ID: 8417136

Claim:
An image forming apparatus, comprising: an image forming section configured to form an toner image depending on image data and transfer the toner image onto a recording sheet; a first fixing roller configured to fix the toner image on the recording sheet by heat; a first temperature sensor configured to detect temperatures of the first fixing roller at a plurality of positions in a longitudinal direction of the first fixing roller; a second fixing roller configured to fix the toner image on the recording sheet by heat; a second temperature sensor configured to detect temperatures of the second fixing roller at a plurality of positions in a longitudinal direction of the second fixing roller; a rocking section configured to reciprocally shift at least one of the first fixing roller and the second fixing roller in a longitudinal direction of the at least one of the rollers; and a controller configured to obtain a first temperature gradient of the first fixing roller and a second temperature gradient of the second fixing roller based on the temperatures detected by the first temperature sensor and the second temperature sensor, set a central position of the reciprocal shift of the at least one of the rollers at a predetermined position so that the first temperature gradient and the second temperature gradient cancel each other, and then control the rocking section to reciprocally shift the at least one of the rollers.