Skip to content

detectImageType()

function detectImageType(bytes): ImageType | null;

Detects PNG and JPEG by their magic bytes.

Parameter Type
bytes Uint8Array

ImageType | null