Zigzag transformation is a kind of scrambling algorithm with low time complexity and good scrambling effect. And inner product polarization vector algorithm is a new encryption algorithm deduced from Attribute Theory. Here both above are combined by first making use of improved Zigzag transformation to have the image scrambled, next encrypting the scram-bled image by way of inner product polarization vector. Thus the purpose to change both positions and values of the image pixels can be attained. Simulations apply the algorithm to RGB colorful images. And the analysis of the security of algorithm is also given.