Binary optical gratings are used in applications such as optical metrology. Due to the fact, that self-imaging phenomenon depends on the grating fill factor, in present work the effect of fill factor on Talbot image formation has been analyzed when the grating is illuminated with a Gaussian beam. A model based on Fresnel regime is used to determine the intensity distribution in the near field. Self-images are obtained under different initial beam conditions and it is found several regimes of the effect of Gaussian beam intensity distribution on the self-images are found: (I) decreasing intensity of grating slit at the beam border when Gaussian waist radius is 10 times greater than grating period, (II) transforming binary-like self-image to the cosine-like one in case when Gaussian waist radius ranges from 2 to 5 grating periods, and (III) disappearing regular grating structure when Gaussian waist radius is less than grating period. Additionally it is analyzed transform from Fresnel to Fraunhofer regime in case of Gaussian beam and effect of wavefront curvature radius value on the distance where different regimes appear.