xmp 1.0.1 copy "xmp: ^1.0.1" to clipboard
xmp: ^1.0.1 copied to clipboard

outdated

XMP module helps to extract xmp data from images.

example/xmp_example.dart

import 'dart:convert';
import 'dart:io';
import 'package:xmp/xmp.dart';

const path = '/Users/kawal/Desktop/xmp';

void main() {
  var image_name = 'test';
  var file = File('$path/test_data/$image_name.jpg');
  var bytes = file.readAsBytesSync();
/**
 * var raw_xmp = XMP.extract(bytes, raw: true);
 */
  var xmp = XMP.extract(bytes);
  File('$path/output_result/$image_name.json')
      .writeAsStringSync(jsonEncode(xmp));
}
5
likes
0
points
224
downloads

Publisher

verified publisherjustkawal.dev

Weekly Downloads

XMP module helps to extract xmp data from images.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

xml

More

Packages that depend on xmp