Patent ID: 7367642

Claim:
An image-recording device comprising: a conveying portion that conveys a recording medium in a conveying direction; a carriage that reciprocates along a scanning direction orthogonal to the conveying direction; a recording head supported on the carriage, the recording head performing recording operations for recording an image on the recording medium; a sensor supported on the carriage at a position shifted from the recording head in the scanning direction and upstream of the recording head in the conveying direction, the sensor being capable of detecting presence of the recording medium; and an edge-detecting portion that controls the sensor to detect at least one of a leading edge and a trailing edge of a recording medium, wherein the carriage is configured to be capable of being placed in a standby position, such that the recording head is outside an area through which the recording medium passes and that the sensor is within the area through which the recording medium passes; and wherein the conveying portion conveys the recording medium with the carriage being placed in the standby position, while the edge-detecting portion detects at least one of the leading edge of the recording medium and the trailing edge of the recording medium.