xmp 1.0.2 copy "xmp: ^1.0.2" to clipboard
xmp: ^1.0.2 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 = '7285';
  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
30
points
224
downloads

Publisher

verified publisherjustkawal.dev

Weekly Downloads

XMP module helps to extract xmp data from images.

Repository (GitHub)

License

MIT (license)

Dependencies

utility, xml

More

Packages that depend on xmp