public/model/image_format library
Functions
-
isJpeg(
Uint8List bytes) → bool -
Returns
trueifbytesstarts with JPEG SOI markerFF D8 FF. -
isPng(
Uint8List bytes) → bool -
Returns
trueifbytesstarts with the PNG file signature (89 50 4E 47 …). -
isSupportedCarrierImage(
Uint8List bytes) → bool -
Returns
truewhenbytesis a supported PNG or JPEG carrier image.