File Compression: Lossless vs. Lossy, and JPEG, PNG, MP3, MP4 Organized for the IT Passport Exam
Organized for the IT Passport exam: the difference between lossless and lossy compression, and the characteristics of major formats like JPEG, PNG, GIF, MP3, and MP4.
The Two Major Categories of Compression
Lossless Compression
Lossless compression is a method where the original data is perfectly restored when decompressed after compression. It is essential for things like document files, executable files, and program source code, which will not function if even a bit of data is missing. The compression ratio is modest compared to lossy compression, but data integrity is preserved. Typical examples include ZIP, LZH, PNG, GIF, and FLAC.
Lossy Compression
Lossy compression is a method that reduces data volume by discarding information in parts that are difficult for human perception to notice. Once compressed, the original data cannot be restored, but the compression ratio is very high. It is suitable for data where some quality degradation is acceptable, such as photos, audio, and video. Specific examples include JPEG, MP3, MP4, and AAC.
Major File Formats
Images
| Format | Compression | Characteristics | Use Cases |
|---|---|---|---|
| JPEG | Lossy | For photos, full color | Photos, social media |
| PNG | Lossless | Supports transparency, full color | Icons, logos |
| GIF | Lossless | 256 colors, supports animation | Simple animations |
| BMP | Uncompressed | Large file size | Legacy |
| WebP | Both | Developed by Google, alternative to JPEG/PNG | Web optimization |
Audio
| Format | Compression | Characteristics |
|---|---|---|
| MP3 | Lossy | Standard for audio compression |
| AAC | Lossy | Improved version of MP3, iTunes |
| WAV | Uncompressed | CD quality, large file size |
| FLAC | Lossless | Supports high-resolution audio |
Video
| Format | Compression | Characteristics |
|---|---|---|
| MP4 | Lossy | Modern standard |
| AVI | Container | Classic format |
Documents & Data
ZIP and LZH are general-purpose lossless compression formats that are convenient for compressing entire folders at once. PDF is widely used as a standard format for document distribution.
Key Points for the IT Passport Exam
In the IT Passport exam, the difference between lossless and lossy compression frequently appears. Questions often ask about the use cases of each format, especially how to distinguish between JPEG, PNG, and MP3. Also, be sure to firmly grasp the fact that "ZIP is lossless compression."
Typical Past Exam Question Patterns
- "Which lossy compression format is suitable for saving photos?" type → JPEG
- "What is the characteristic of the ZIP compression method?" type → Lossless
Related Terms
- Character encoding (Character Encoding)
- IoT & Video Streaming (What is IoT?)
- Metaverse & AR/VR (Metaverse, AR/VR/MR)
Study Tips
Memorizing by linking use cases and formats, such as "photos are JPEG (lossy)" and "logos are PNG (lossless)," makes it less confusing. Understand that the mainstream audio format is MP3 and the mainstream video format is MP4. It is also important to note that ZIP is a lossless method that can compress programs and documents without damaging them.
Summary
If you grasp the difference between lossless and lossy compression and the use cases of each format, you can reliably score points on file format questions. For comprehensive practice on the Technology domain, check out the Technology Summary, and for a full-length practice exam, head to the Mock Exam.
関連記事
What Is 5G? Differences from 4G and Use Cases for the IT Passport Exam
Organizes the three main features of 5G (high speed, low latency, massive connectivity), differences from 4G, and applications in autonomous driving and remote medicine for the IT Passport exam.
AI and Machine Learning Basics | Key IT Passport Exam Terminology
Organizes AI-related terms tested on the IT Passport exam, including the relationship between AI, machine learning, and deep learning, differences between supervised/unsupervised/reinforcement learning, and generative AI and LLMs.
Algorithms and Computational Complexity: Big O Notation and the Basics of Search and Sort for the IT Passport Exam
A summary of algorithm fundamentals, linear search and binary search, bubble sort and quicksort, and Big O notation for computational complexity, tailored for the IT Passport exam.