CaiJingLong / dart_image_size_getter

Use dart file api to get image size, needn't use decode. just read the metadata.
Apache License 2.0
64 stars 29 forks source link

大量jpg图isValid为false #27

Closed liangxianshen closed 1 year ago

liangxianshen commented 1 year ago

mmexport1669865708861 mmexport1669865705392

CaiJingLong commented 1 year ago

The end of your file is the bytes:

image

Normal jpeg file is end of '0xFF 0xD9', like next:

image

--

See the example to know how to use the library get size.