JNG

video/x-jng

Safe

Magic Bytes

Offset: 0
8B 4A 4E 47

JPEG Network Graphics (JNG) is a graphics file format created as a sub-format of the Multiple-image Network Graphics (MNG) specification, managed by the PNG development group. It was designed to combine the high-ratio lossy compression capabilities of JPEG with the alpha transparency and structural features of the PNG architecture. Although originally intended as a complement to MNG for web graphics, JNG is considered a legacy format and receives minimal support in modern web browsers and image viewers.

Extension

.jng

MIME Type

video/x-jng

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .jng files in Python

Python
def is_jng(file_path: str) -> bool:
    """Check if file is a valid JNG by magic bytes."""
    signature = bytes([0x8B, 0x4A, 0x4E, 0x47])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .jng files in Node.js

Node.js
function isJNG(buffer: Buffer): boolean {
  const signature = Buffer.from([0x8B, 0x4A, 0x4E, 0x47]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsJNG(data []byte) bool {
    signature := []byte{0x8B, 0x4A, 0x4E, 0x47}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

GET /api/v1/jng
curl https://filesignature.org/api/v1/jng

Related Formats