A lossless image compression algorithm based on linear prediction coding and Huffman coding was proposed. Linear prediction coding method was used to reduce the redundancy among pixels while Huffman coding was used to reduce coding redundancy in our method. The experimental results show that PSNR and average CR are infinite, 1.5156 respectively in our method. The performance of our lossless image coder is superior to that obtained from baseline Huffman image coder in compression rate.