A scanning speed for a carriage and a number of multi-pass are set in accordance with print density information of dots obtained from image data. This makes it possible to preferably output an image free from the occurrence of an end deviation without reducing throughput to a required extent or more.