Skip to main content

matchClosestResolution

@microblink/blinkid-verify


@microblink/blinkid-verify / matchClosestResolution

Function: matchClosestResolution()

matchClosestResolution(resolution): "720p" | "1080p" | "4k"

Matches the closest resolution to the given resolution.

Parameters

resolution

Resolution

The resolution to match.

Returns

"720p" | "1080p" | "4k"

The closest resolution.