1. An image forming apparatus comprising: an image bearing member capable of bearing an electrostatic image; a development device that includes a developer bearing member which bears developer, the development device being configured to develop an electrostatic image corresponding to an output image on the image bearing member; and a controller configured to control a discharge operation of discharging a developer, which has a polarity opposite to a normal polarity, to the image bearing member by forming an electric field which is larger than when image formation is performed, wherein the electric field forces the developer having the opposite polarity from the developer bearing member to the image bearing member at a time when image formation is not performed, and wherein the controller is further configured to control the discharge operation based on at least information corresponding to an edge portion of an output image.