public/model/image_format library

Functions

isJpeg(Uint8List bytes) bool
Returns true if bytes starts with JPEG SOI marker FF D8 FF.
isPng(Uint8List bytes) bool
Returns true if bytes starts with the PNG file signature (89 50 4E 47 …).
isSupportedCarrierImage(Uint8List bytes) bool
Returns true when bytes is a supported PNG or JPEG carrier image.