Skip to main content
Log in

An improved lossless image compression algorithm based on Huffman coding

  • 1193: Intelligent Processing of Multimedia Signals
  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

There is an increasing number of image data produced in our life nowadays, which creates a big challenge to store and transmit them. For some fields requiring high fidelity, the lossless image compression becomes significant, because it can reduce the size of image data without quality loss. To solve the difficulty in improving the lossless image compression ratio, we propose an improved lossless image compression algorithm that theoretically provides an approximately quadruple compression combining the linear prediction, integer wavelet transform (IWT) with output coefficients processing and Huffman coding. A new hybrid transform exploiting a new prediction template and a coefficient processing of IWT is the main contribution of this algorithm. The experimental results on three different image sets show that the proposed algorithm outperforms state-of-the-art algorithms. The compression ratios are improved by at least 6.22% up to 72.36%. Our algorithm is more suitable to compress images with complex texture and higher resolution at an acceptable compression speed.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

References

  1. 7-Zip (2021) https://www.7-zip.org/. Accessed 22 Feb. 2021

  2. Oord Avd, Kalchbrenner N, Kavukcuoglu K (2016) Pixel Recurrent Neural Networks. Paper presented at the Proceedings of the 33rd International Conference on Machine Learning, 19 Aug.

  3. Avramović A, Savić S (2011) Lossless predictive compression of medical images*. Serbian Journal of Electrical Engineering 8(1):27–36

    Article  Google Scholar 

  4. Ayyoubzadeh SM, Wu X (2020) Lossless compression of mosaic images with convolutional neural network prediction. ArXiv abs/2001.10484

  5. Azman NAN, Ali S, Rashid RA, Saparudin FA, Sarijari MA (2019) A hybrid predictive technique for lossless image compression. Bulletin of electrical engineering and informatics 8 (4):1289-1296. Doi:https://doi.org/10.11591/eei.v8i4.1612

  6. Christopoulos C, Skodras A, Ebrahimi T (2000) The JPEG2000 still image coding system: an overview. IEEE Trans Consum Electron 46(4):1103–1127. https://doi.org/10.1109/30.920468

    Article  Google Scholar 

  7. Ding J, Wang I (2016) Improved frequency table adjusting algorithms for context-based adaptive lossless image coding. In: 2016 IEEE International Conference on Consumer Electronics-Taiwan (ICCE-TW), pp 1–2. doi:https://doi.org/10.1109/ICCE-TW.2016.7521049

  8. Dorobanțiu B (2019) Improving lossless image compression with contextual memory. Appl Sci 9(13). https://doi.org/10.3390/app9132681

  9. Fawcett R (1996) Combination coding: a new entropy coding technique. In: Proceedings of Data Compression Conference - DCC '96, 31 March-3 April 1996. p 434. doi:https://doi.org/10.1109/DCC.1996.488366

  10. Fleet PJV (2019) The JPEG2000 image compression standard. In: discrete wavelet transformations. 2 edn. John Wiley & Sons, pp 525-545. doi:https://doi.org/10.1002/9781119555414.ch12

  11. Giudice O, Allegra D, Stanco F, Grasso G, Battiato S A (2018) Fast Palette Reordering Technique Based on GPU-Optimized Genetic Algorithms. In: 2018 25th IEEE International Conference on Image Processing (ICIP), pp 1138–1142. doi:https://doi.org/10.1109/ICIP.2018.8451221

  12. Golomb S (1966) Run-length encodings (Corresp.). IEEE Trans Inf Theory 12(3):399–401. https://doi.org/10.1109/TIT.1966.1053907

    Article  MATH  Google Scholar 

  13. Hassen W, Amiri H (2013) The 5/3 and 9/7 Wavelet Filters Study in a Sub-bands Image Coding. In: 2013 7th IEEE International Conference on e-Learning in Industrial Electronics (ICELIE), pp 150–154. doi:https://doi.org/10.1109/ICELIE.2013.6701290

  14. Hussain AJ, Al-Fayadh A, Radi N (2018) Image compression techniques: a survey in lossless and lossy algorithms. Neurocomputing 300:44–69. https://doi.org/10.1016/j.neucom.2018.02.094

    Article  Google Scholar 

  15. Image Repository of the University of Waterloo (2021) http://links.uwaterloo.ca/Repository.html. Accessed 22 Feb. 2021

  16. Jain C, Chaudhary V, Jain K, Karsoliya S (2011) Performance Analysis of Integer Wavelet Transform for Image Compression. In: 2011 3rd International Conference on Electronics Computer Technology, pp 244–246. doi:https://doi.org/10.1109/ICECTECH.2011.5941746

  17. Jain P, Jain A, Agrawal C (2013) Effective dictionary based data compression and pattern searching in dictionary based compressed data. In: 2013 Fourth International Conference on Computing, Communications and Networking Technologies (ICCCNT), pp 1–6. doi:https://doi.org/10.1109/ICCCNT.2013.6726570

  18. Khandwani FI, Ajmire PE (2018) A survey of lossless image compression techniques. International Journal of Electrical Electronics & Computer Science Engineering 5(1):39–42

    Google Scholar 

  19. Kitanovski V, Kseneman M, Gleich D, Taskovski D (2008) Adaptive lifting integer wavelet transform for lossless image compression. In: 2008 15th International Conference on Systems, Signals and Image Processing, pp 105–108. doi:https://doi.org/10.1109/IWSSIP.2008.4604378

  20. Kumar V, Sharma S (2017) Lossless image compression through Huffman coding technique and its application in image processing using MATLAB. International journal of soft computing and engineering (IJSCE):10-13

  21. Kumar RN, Jagadale BN, Bhat JS (2019) A lossless image compression algorithm using wavelets and fractional Fourier transform. SN Applied Sciences 1(3):266. https://doi.org/10.1007/s42452-019-0276-z

    Article  Google Scholar 

  22. Mentzer F, Agustsson E, Tschannen M, Timofte R, Gool LV (2020) Practical full resolution learned lossless image compression.

  23. Oswal S, Singh A, Kumari K (2016) Deflate compression algorithm. International Journal of Engineering Research and General Science 4(1):430–436

    Google Scholar 

  24. Pinho AJ, Neves AJ (2004) A survey on palette reordering methods for improving the compression of color-indexed images. IEEE Trans Image Process 13(11):1411–1418. https://doi.org/10.1109/tip.2004.836168

    Article  MathSciNet  Google Scholar 

  25. Rahman MA, Hamada M (2019) Lossless image compression techniques: a state-of-the-art survey. Symmetry 11(10):1274–1296. https://doi.org/10.3390/sym11101274

    Article  Google Scholar 

  26. Rahman MA, Rabbi MMF, Rahman MM, Islam MM, Islam MR (2018) Histogram modification based lossy image compression scheme using Huffman coding. In: 2018 4th International Conference on Electrical Engineering and Information & Communication Technology (ICEEICT), pp 279–284. doi:https://doi.org/10.1109/CEEICT.2018.8628092

  27. Reed S, Oord Avd, Kalchbrenner N, Gómez S, Wang Z, Belov D, Freitas Nd (2017) Parallel multiscale autoregressive density estimation. ICML 2017

  28. Salimans T, Karpathy A, Chen X, Kingma DP (2017) PixelCNN++: improving the PixelCNN with discretized logistic mixture likelihood and other modifications. Paper presented at the ICLR 2017, 19 Jan

  29. Savakis AE (2000) Evaluation of Lossless Compression Methods for Grayscale Document Images. In: Proceedings 2000 International Conference on Image Processing, pp 136–139. doi:https://doi.org/10.1109/ICIP.2000.900913

  30. Schiopu I, Liu Y, Munteanu A (2018) CNN-based Prediction for Lossless Coding of Photographic Images. In: 2018 Picture Coding Symposium (PCS), pp 16–20. doi:https://doi.org/10.1109/PCS.2018.8456311

  31. Sharma K, Gupta K (2017) Lossless data compression techniques and their performance. In: 2017 International Conference on Computing, Communication and Automation (ICCCA):256–261. https://doi.org/10.1109/CCAA.2017.8229810

  32. Sheikh S, Narayanan A (2019) An Efficient Palette Reordering For Lossless Compression of Color Indexed Images. In: 2019 2nd International Conference on Intelligent Computing, Instrumentation and Control Technologies (ICICICT), pp 1671–1673. doi:https://doi.org/10.1109/ICICICT46008.2019.8993282

  33. Shrikhande RN, Bairagi VK (2014) Image Compression Using Calic. In: 2014 International Conference on Advances in Communication and Computing Technologies (ICACACT 2014), pp 1–4. doi:https://doi.org/10.1109/EIC.2015.7230725

  34. Sun Y-k A (2004) Two-dimensional Lifting Scheme of Integer Wavelet Transform for Lossless Image Compression. In: 2004 International Conference on Image Processing, pp 497–500 doi:https://doi.org/10.1109/ICIP.2004.1418799

  35. Sweldens W (1998) The lifting scheme: a new philosophy in Biorthogonal wavelet constructions. Proceedings of SPIE-The International Society for Optical Engineering 2569(1):68–79

    Google Scholar 

  36. The New Test Images-Image Compression Benchmark (2021) http://imagecompression.info/test_images/. Accessed 22 Feb. 2021

  37. Weinberger MJ, Seroussi G, Sapiro G (2000) The LOCO-I lossless image compression algorithm: principles and standardization into JPEG-LS. IEEE Trans Image Process 9(8):1309–1324. https://doi.org/10.1109/83.855427

    Article  Google Scholar 

  38. Wu X, Memon N (1997) Context-based, adaptive, lossless image coding. IEEE Trans Commun 45(4):437–444. https://doi.org/10.1109/26.585919

    Article  Google Scholar 

  39. Y-l Z, X-p F, S-q L, Z-y X (2010) Improved LZW algorithm of lossless data compression for WSN. In: 2010 3rd International Conference on Computer Science and Information Technology:523–527. https://doi.org/10.1109/ICCSIT.2010.5563620

Download references

Acknowledgments

This work was supported in part by the National Natural Science Foundation of China, under Grants 62020106011, 62071287, and 62001279.

Code availability

Not applicable

Funding

This work was supported in part by the National Natural Science Foundation of China, under Grants 62020106011, 62071287, and 62001279.

Data availability

Not applicable

Author information

Authors and Affiliations

Authors

Contributions

Not applicable

Corresponding author

Correspondence to Ping An.

Ethics declarations

Conflicts of interest/competing interests

Not applicable

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Liu, X., An, P., Chen, Y. et al. An improved lossless image compression algorithm based on Huffman coding. Multimed Tools Appl 81, 4781–4795 (2022). https://doi.org/10.1007/s11042-021-11017-5

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-021-11017-5

Keywords

Navigation