image_metadata

Reads image metadata (Exif), including width, height and orientation.

Usage

A simple usage example:

import 'package:image_metadata/image_metadata.dart';

main() {

  var imageBase64 = '...' ;
  var imageData = ImageData.fromBase64(ImageType.JPEG, imageBase64) ;

  var metadataReader = ImageMetadataReader(imageData) ;
  
  var imageMetadata = metadataReader.read() ;

  var w = imageMetadata.getImageWidth() ;
  var h = imageMetadata.getImageHeight() ;
  var orientation = imageMetadata.getImageOrientation() ;

}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Author

Graciliano M. Passos: gmpassos@GitHub.

License

Dart free & open-source license.

Libraries

image_metadata