extract static method
Extracts XMP Data
from the image
Map result = XMP.extract(bytes);
print(result.toString());
or
Extracts XMP RAW Data
from the image
Map result = XMP.extract(bytes, raw: true);
print(result.toString());
Implementation
static Map<String, dynamic> extract(Uint8List source,
{bool raw = false, ImageType type = ImageType.jpg}) {
switch (type) {
case ImageType.apng:
return ApngMetaData().extract(source, raw: raw);
case ImageType.png:
return PngMetaData().extract(source, raw: raw);
case ImageType.jpeg:
return JpegMetaData().extract(source, raw: raw);
default:
return _defaultExtract(source, raw: raw);
}
}