An inkjet printer includes a print head, a nozzle position and a print control section. The print head includes a plurality of nozzles to eject ink. The nozzle position specifying section is configured to specify a position of a first nozzle of the plurality of nozzles that exhibits defective ejection of the ink. The print control section is configured to eject the ink from the plurality of nozzles based on image data. The print control section is configured to determine a density of second pixels, which are positioned adjacent to first pixels to be printed by the first nozzle that was specified, and a density of third pixels, which are positioned adjacent to the second pixels except the first pixels, based on the image data, and to correct to increase the density of the second pixels and to reduce the density of the third pixels.