Most of the existing spatial domain image encryption techniques suffer from the difficulty of resisting cryptographic attacks. For this reason, this paper proposes a frequency-domain based digital image encryption scheme by combining Integer Wavelet Transform (IWT), three-dimensional S-box and chaotic system. Firstly, the plaintext image is decomposed into different frequency subbands by IWT to map the digital image from spatial domain to frequency domain. Second, the plaintext hash value is selected as the dynamic key, and dynamic chaotic pseudo-random sequences with associations are generated, which are used for the encryption of each module respectively. Then, a three-dimensional S-box is designed to encrypt the information-rich low-frequency information using ``bit-permutation three-dimensional S-box substitution ciphertext interleaved diffusion'', while the high-frequency information is encrypted using a lightweight ``XOR-row column permutation'' operation. Finally, the secure ciphertext for public channel transmission is obtained by the reconstruction method. the scheme of this paper, the frequency domain transformation is implemented through IWT, which enhances the ability to resist attacks. In addition, each encryption module employs a closed-loop feedback mechanism, thus the algorithm has the ability to resist plaintext attacks. Theoretical analysis and empirical results show that the algorithm has excellent numerical statistical analysis results, These findings confirm that the proposed method exhibits good confusion, diffusion, and avalanche effects and can withstand a variety of popular cryptographic attacks. Given that frequency domain picture encryption is a preferred high-security technique for safeguarding the privacy of digital photographs, it is a workable solution for practical applications.