ImageFormatDetector class
檢測圖片格式工具
具體檢測方式參考https://en.wikipedia.org/wiki/List_of_file_signatures
apng檢測方式參考https://stackoverflow.com/questions/62367134/how-do-i-detect-apng-in-python
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
detect(
List< int> bytes) → ImageFormat -
檢測一個二進位的檔案是否為圖片的各種格式
bytes
- 二進位檔案