exif 1.0.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 80

exif

Build Status

Dart module to decode Exif data from tiff and jpeg files.

Dart port of ianaré sévi's EXIF library: https://github.com/ianare/exif-py.

Installation

Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  exif: 

Install it

You can install packages from the command line:

$ pub get

Usage

Simple example:

printExifOf(String path) async {

  Map<String, IfdTag> data = readExifFromBytes(await new File(path).readAsBytes());

  if (data == null || data.isEmpty) {
    printFunc("No EXIF information found\n");
    return;
  }

  if (data.containsKey('JPEGThumbnail')) {
    printFunc('File has JPEG thumbnail');
    data.remove('JPEGThumbnail');
  }
  if (data.containsKey('TIFFThumbnail')) {
    printFunc('File has TIFF thumbnail');
    data.remove('TIFFThumbnail');
  }

  for (String key in data.keys) {
    printFunc("$key (${data[key].tagType}): ${data[key]}");
  }
  
}

1.0.0

  • Removed dependency on io package
  • Removed readExifFromFile

0.1.5

  • Added tests

0.1.2

  • Initial version

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate exif

2. Use it

The package has the following executables:


$ print_exif

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  exif: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:exif/exif.dart';
  
Version Uploaded Documentation Archive
1.0.0 Aug 15, 2018 Go to the documentation of exif 1.0.0 Download exif 1.0.0 archive
0.1.5 Aug 15, 2018 Go to the documentation of exif 0.1.5 Download exif 0.1.5 archive
0.1.4 Aug 15, 2018 Go to the documentation of exif 0.1.4 Download exif 0.1.4 archive
0.1.3 Aug 15, 2018 Go to the documentation of exif 0.1.3 Download exif 0.1.3 archive
0.1.2 Dec 19, 2017 Go to the documentation of exif 0.1.2 Download exif 0.1.2 archive
0.1.1 Dec 20, 2016 Go to the documentation of exif 0.1.1 Download exif 0.1.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
80
Health:
Code health derived from static analysis. [more]
86
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
80
Learn more about scoring.

We analyzed this package on Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:exif/exif.dart.

Health issues and suggestions

Document public APIs (-10 points)

13 out of 13 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

Fix lib/src/makernote_apple.dart. (-0.50 points)

Analysis of lib/src/makernote_apple.dart reported 1 hint:

line 7 col 7: Name types using UpperCamelCase.

Fix lib/src/makernote_canon.dart. (-0.50 points)

Analysis of lib/src/makernote_canon.dart reported 1 hint:

line 7 col 7: Name types using UpperCamelCase.

Fix lib/src/makernote_casio.dart. (-0.50 points)

Analysis of lib/src/makernote_casio.dart reported 1 hint:

line 5 col 7: Name types using UpperCamelCase.

Fix additional 5 files with analysis or formatting issues. (-2.50 points)

Additional issues in the following files:

  • lib/src/makernote_fujifilm.dart (1 hint)
  • lib/src/makernote_nikon.dart (1 hint)
  • lib/src/makernote_olympus.dart (1 hint)
  • lib/src/tags.dart (1 hint)
  • lib/src/tags_info.dart (1 hint)

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use exif.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.2 <3.0.0
args ^1.2.0 1.5.1
collection ^1.0.0 1.14.11
convert ^2.0.0 2.0.2
sprintf >=1.0.0 <5.0.0 4.0.0
Transitive dependencies
charcode 1.1.2
typed_data 1.1.6
Dev dependencies
archive ^2.0.2
build_runner ^0.10.0
http any
json_annotation ^1.0.0
json_serializable ^1.0.0
path any
stream_channel any
test any