Patent ID: 8882235

Claim:
An image recording apparatus comprising: a liquid applying mechanism configured to apply a first liquid onto a recording medium; a liquid discharge head comprising a liquid discharge surface and configured to discharge a second liquid from a liquid discharge port formed in the liquid discharge surface onto the recording medium, wherein the liquid discharge head is disposed downstream from the liquid applying mechanism in a transport direction of the recording medium; a wiper configured to wipe the liquid discharge surface of the liquid discharge head; a recording medium sensor disposed downstream from the liquid discharged head in the transport direction and configured to detect a presence of the recording medium; a processor; and a computer readable medium storing computer readable instructions, when executed by the processor, cause the image recording apparatus to perform: determining a jam of a recording medium onto which the first liquid has been applied by the liquid applying mechanism based on a detection of the recording medium sensor; counting a number of jams determined; determining a passage of a recording medium through a region facing the liquid discharge head; counting a number of passages determined; incrementing the number of jams when the number of passages is equal to or greater than a first threshold value; and performing a head recovery operation in which the liquid discharge head discharges the second liquid through the liquid discharge port and the wiper wipes the discharge surface when a jam of a recording medium is determined and when the number of jams is incremented.