A fixing device for fixing toner images on recording materials in a nip by nipping and feeding the recording materials in the nip, said fixing device comprising:
- an elongated heater extending in a longitudinal direction of said heater of said heater, the longitudinal direction of said heater being perpendicular to a feeding direction of a recording material;
- an air blowing device configured to blow air toward one end portion and another end portion of said heater, with respect to the longitudinal direction, when the recording material, having a size, with respect to the longitudinal direction, that is smaller than a maximum size of the recording material that can be fixed by said fixing device, is inserted into said fixing device;
- a first opening through which air blown from said air blowing device toward the one end portion of said heater passes;
- a first shielding member configured to change an opening width of said first opening with respect to the longitudinal direction;
- a second opening through which air blown from said air blowing device toward the other end portion of said heater passes;
- a second shielding member configured to change an opening width of said second opening with respect to the longitudinal direction;
- a detector configured to acquire position information relating to a position of an end portion of the recording material in the longitudinal direction, and to output the position information;
- and
- a controller configured to make the opening widths of said first opening and said second opening correspond to widths of non-passing portions of the recording material in the nip by setting a moving amount of said first shielding member in the longitudinal direction and a moving amount of said second shielding member in the longitudinal direction on the basis of a deviation amount of the end portion of the recording material obtained from the position information output by said detector when the recording material having a size other than the maximum size is inserted into said fixing device, the moving amount of said first shielding member in the longitudinal direction and the moving amount of said second shielding member in the longitudinal direction being different from each other.