A method of compensating for an error of a conveyance distance of a recording medium in an image forming apparatus including:
- a feeding roller rotatably disposed to convey the recording medium in a conveying direction, the feeding roller including a rotational axle that is eccentric and a peripheral surface having an actual external dimension that is different from a theoretical external dimension and a peripheral length in the conveyance direction;
- and a recording unit having a head length over which an image can be printed in the conveying direction, the method comprising:
- printing a first image on the recording medium;
- rotating the feeding roller N turns, N being a positive integer;
- printing a second image on the recording medium after the feeding roller has been rotated N turns;
- and
- determining difference of the actual external dimension from the theoretical external dimension, based on both the first image and the second image.