Which of the following compression algorithms is used to generate a .png file?
2015
Which of the following compression algorithms is used to generate a .png file?
- A.
LZ78
- B.
Deflate
- C.
LZW
- D.
Huffman
Attempted by 251 students.
Show answer & explanation
Correct answer: B
The PNG file format specification explicitly defines the use of the DEFLATE compression algorithm for compressing image data streams. While Huffman coding is a component within Deflate, the standard identifier for the algorithm used in PNGs is specifically Deflate. LZW compression is primarily associated with GIF files rather than PNG images.
A video solution is available for this question — log in and enroll to watch it.