An image reading apparatus comprising: a reading section configured to read a medium being transported; a first discharge roller pair configured to nip the medium read in the reading section by a first roller and a second roller and discharge the medium; a second discharge roller pair configured to nip the medium read in the reading section by a third roller and a fourth roller and discharge the medium, the second discharge roller pair being disposed with respect to the first discharge roller pair with a space in a width direction (x) intersecting a medium transport direction; a first rib disposed on one side in the width direction (x) and protrudes from the first roller side toward the second roller side, the first rib being configured to form a convex shape or a concave shape in the medium read in the reading section; and a second rib disposed on the opposite side of the first rib in the width direction (x) and protrudes from the third roller side toward the fourth roller side, the second rib being configured to form a convex shape or a concave shape in the medium read in the reading section, wherein in a side view of the image reading apparatus, the first rib is disposed at a position overlapping the first discharge roller pair, and in the side view of the image reading apparatus, the second rib is disposed at a position overlapping the second discharge roller pair; and wherein the first rib has a first top portion at a top in the protruding direction, the second rib has a second top portion at a top in the protruding direction, the first top portion is configured to be positioned in a first position higher than a first nipping position of the first discharge roller pair in the protruding direction of the first rib, and the second top portion is configured to be positioned in a second position higher than a second nipping position of the second discharge roller pair in the protruding direction of the second rib; the first rib is configured to be positioned in a position between the first position and a third position that is retracted from the medium transport path and away from the medium being transported, and the second rib is configured to be positioned in a position between the second position and a fourth position that is retracted from the medium transport path and away from the medium being transported, and the image reading apparatus further comprising: a controller configured to control the positioning of the first rib and the second rib, the image reading apparatus characterized in that the controller controls the first rib and the second rib in accordance with a result read by the reading section. a reading section configured to read a medium being transported; a first discharge roller pair configured to nip the medium read in the reading section by a first roller and a second roller and discharge the medium; a second discharge roller pair configured to nip the medium read in the reading section by a third roller and a fourth roller and discharge the medium, the second discharge roller pair being disposed with respect to the first discharge roller pair with a space in a width direction (x) intersecting a medium transport direction; a first rib disposed on one side in the width direction (x) and protrudes from the first roller side toward the second roller side, the first rib being configured to form a convex shape or a concave shape in the medium read in the reading section; and a second rib disposed on the opposite side of the first rib in the width direction (x) and protrudes from the third roller side toward the fourth roller side, the second rib being configured to form a convex shape or a concave shape in the medium read in the reading section, wherein in a side view of the image reading apparatus, the first rib is disposed at a position overlapping the first discharge roller pair, and in the side view of the image reading apparatus, the second rib is disposed at a position overlapping the second discharge roller pair; and wherein the first rib has a first top portion at a top in the protruding direction, the second rib has a second top portion at a top in the protruding direction, the first top portion is configured to be positioned in a first position higher than a first nipping position of the first discharge roller pair in the protruding direction of the first rib, and the second top portion is configured to be positioned in a second position higher than a second nipping position of the second discharge roller pair in the protruding direction of the second rib; the first rib is configured to be positioned in a position between the first position and a third position that is retracted from the medium transport path and away from the medium being transported, and the second rib is configured to be positioned in a position between the second position and a fourth position that is retracted from the medium transport path and away from the medium being transported, and a controller configured to control the positioning of the first rib and the second rib, the image reading apparatus characterized in that the controller controls the first rib and the second rib in accordance with a result read by the reading section.