After analyzing some image encryption algorithms, this paper presents a new image encryption algorithm based on chaotic sequences. At first, an image data is compressed, then the compressed data is encrypted based on chaotic sequences and the encrypted data is saved to text file. The experimental results show that the algorithm is feasible, universal and has good encrypt effect.