As the most commonly used information transmission method, digital images often store a large amount of personal information. To prevent information leakage, encrypting images is essential. Common image encryption techniques suffer from certain limitations, such as overly simple encryption methods and long encryption times. In response to the above issues, this study proposes the Frobenius canonical form image encryption scheme. It calculates the fractal code through the fractal compression algorithm and to encrypt the image, it adjusts the brightness coefficient in the fractal code. To address unsatisfactory correlation coefficients in encrypted images, the Frobenius canonical form image encryption is improved by introducing the Arnold transformation encryption, which combines the two methods to reduce correlation coefficients. Finally, the knight tour algorithm is put forward. In response to the long image scrambling time in the knight tour algorithm, the Tetragonal theorem is combined with the scheme to encrypt the image. It is then re-encrypted using the Frobenius canonical form. The experimental findings illustrate that when using Frobenius canonical form, Arnold transformation combined with Frobenius canonical form, and the tetragonal algorithm combined with knight tour algorithm to encrypt Lena images, the three decryption methods correspond to image similarity of over 70%, over 80%, and over 90%, respectively. Combining the tetragonal algorithm and the knight tour algorithm can significantly increase the security of image encryption.