In this paper, a holographic system to suppress the speckle noise is proposed. Two spatial light modulators (SLMs) are used in the system, one of which is used for beam shaping, and the other is used for reproducing the image. By calculating the effective viewing angle of the reconstructed image, the effective hologram and the effective region of the SLM are calculated accordingly. Then, the size of the diffractive optical element (DOE) is calculated accordingly. The dynamic DOEs and effective hologram are loaded on the effective regions of the two SLMs, respectively, while the wasted areas of the two SLMs are performed with zero-padded operations. When the laser passes through the first SLM, the light can be modulated by the effective DOEs. When the modulated beam illuminates the second SLM which is loaded with the effective hologram, the image is reconstructed with better quality and lower speckle noise. Moreover, the calculation time of the hologram is reduced. Experiments indicate the validity of the proposed system.