MNG
video/x-mng
Magic Bytes
Offset: 0
8A 4D 4E 47
Multiple-image Network Graphics (MNG) is a raster graphics file format developed by the PNG Development Group to provide animation capabilities closely related to the PNG standard. Designed as an extensible alternative to GIF, it supports complex multi-frame animations, nested loops, and transparency features for web-based graphics. Despite offering technical advantages, MNG saw limited browser adoption and is now considered a legacy format, having been largely superseded by APNG and modern video standards.
Validation Code
How to validate .mng files in Python
Python
def is_mng(file_path: str) -> bool:
"""Check if file is a valid MNG by magic bytes."""
signature = bytes([0x8A, 0x4D, 0x4E, 0x47])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .mng files in Node.js
Node.js
function isMNG(buffer: Buffer): boolean {
const signature = Buffer.from([0x8A, 0x4D, 0x4E, 0x47]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsMNG(data []byte) bool {
signature := []byte{0x8A, 0x4D, 0x4E, 0x47}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/mng
curl https://filesignature.org/api/v1/mng