Part 6/12:
The process often involves stacking data blobs—images, videos, and audio—within the file while ensuring headers are positioned so that programs recognize their respective formats. For example, a TGA image and an MP4 video can be merged because TGA’s headers are simple and forgiving, and MP4’s atom structure offers spaces for embedding or skipping data.
The Windows Icon Technique
Using an icon file (ICO), which is similar to PNG, provides another avenue. Icon files have generic headers ("00 00 01 00") that can be leveraged to embed the actual image data anywhere within the file, by offsetting pointers in the icon's directory structure—allowing another format to coexist within an ICO.