Skip to main content

Compression and Encoding of Image: Image Formats

  • Chapter
  • First Online:
Guide to Signals and Patterns in Image Processing
  • 2587 Accesses

Abstract

Digital image is a discrete 2D signal having information of intensity in terms of primary colors (either red, green, blue (RGB), or cyan, magenta, yellow, black (CMYK)) for each separation of each pixel. Just by considering a small RGB image of size 10?×?10, we can measure the size of the image data as 3?×?8?×?10?×?10?=?2400 bits, where intensity of each color separation or each pixel is 1 byte or 8 bits. Hence, we can understand, it requires huge data to represent a sufficiently large image. In today’s world of image transmission through network, fast representation on webpage, and storing image information, the size of data plays a resistive role. Therefore, it is very important to employ image compression suitably. The term “suitable” is added intentionally to address the quality issue of image against the trade-off with compression ratio. It is well understood that there is a merely inverse relationship between the factors “quality” and “compression ratio”. The quality is a direct illustration of information in the image. As the amount of detailing in the image is varied, the difficulty in choice between quality and compression ratio is also varied. This chapter is especially important for any kind of application development in image processing. The lossless and lossy compression methodology with trade-off has been described in the first half of this chapter. Second half of the chapter describes the process and algorithm of encoding the raw and compressed image formats. We have presented one C++ code for reading 24-bit BMP image. The code is available in the supplementary electronic material (CD) also. The two popular compressed image formats, JPEG and GIF are also discussed and the required code snippets are presented.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    In the later section, we will understand why “average unit” of information is mentioned instead of only “unit” of information.

  2. 2.

    Refer to Chap. 4 to understand the relationship between RGB and CMYK.

References

  1. Das, A.: Digital Communication: Principles and System Modelling. Springer-Verlag, Berlin (2010)

    Google Scholar 

  2. Das, A.: Signal Conditioning: An Introduction to Continuous Wave Communication and Signal Processing. Springer, Berlin (2012)

    Google Scholar 

  3. Das, A., Issac, A.: QPAC: A novel document image compression technique based on ANFIS for calibrated quality preservation. ICSIP 2012, LNEE (2012)

    Google Scholar 

  4. Gersho, A., Gray, R.M.: Vector Quantization and Signal Compression. Kluwer Academic, Boston (1992)

    Google Scholar 

  5. Gonzales, R.C., Woods, R.E.: Digital Image Processing, 3rd edn. Prentice Hall, Upper Saddle River (2009)

    Google Scholar 

  6. Miano, J.: Compressed Image File Formats. ACM Press, Addison Wesley, New York (1999)

    Google Scholar 

  7. Rosenfeld, A., Kak, A.C.: Digital Picture Processing, vol. 1 and 2, 2nd edn. Academic, New York (1982)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Apurba Das .

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Das, A. (2015). Compression and Encoding of Image: Image Formats. In: Guide to Signals and Patterns in Image Processing. Springer, Cham. https://doi.org/10.1007/978-3-319-14172-5_6

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-14172-5_6

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-14171-8

  • Online ISBN: 978-3-319-14172-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics