Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.
/ ember-exif Public archive

Read exif data from photos and make it available to your application

License

Notifications You must be signed in to change notification settings

jeffjewiss/ember-exif

Repository files navigation

Ember Exif

Build Status npm version Monthly Downloads Ember Observer Score

This add-on is currently an experiment and under development.

The goal of this add-on is to read the exif data from photos in your Ember app and make them available as data to the app itself through an ES6 module that can be imported. This could be useful to photo portfolios or other sites where displaying image metadata would be valuable.

Configuration

// ember-cli-build.js
module.exports = function(defaults) {
  const app = new EmberApp(defaults, {
    exifOptions: {
      paths: ['public/photos'],
      includedMetaData: ['FileName'], // can’t have both included and excluded
      excludedMetaData: ['FileName'], // can’t have both included and excluded
      output: {
        log: true
      }
    }
  });

Usage

From somewhere in your application:

import photoData from 'photos/image-manifest'
import { wrap } from 'ember-array/utils'

export default Component.extend({
  init(...args) {
    this._super(...args);

    this.set('photoNamesList', wrap(photoData.data).mapBy('RawFileName'))
  }
})

About

Read exif data from photos and make it available to your application

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published