1. An image forming apparatus comprising: an image forming unit that forms an image on a recording material by ejecting ink; and an image processing unit that, in a case where information of a bar code image is included in image information for forming the image by the image forming unit, carries out a process of making a drop size of the ink used for pixels constituting an edge portion in the bar code image smaller than a drop size of the ink used for pixels constituting a portion other than the edge portion, and that expands the pixels constituting the edge portion of two pixels or more from the edge portion.