ember-exif

0.1.7 • Public • Published

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'))
  }
})

/ember-exif/

    Package Sidebar

    Install

    npm i ember-exif

    Weekly Downloads

    0

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    11.7 MB

    Total Files

    8

    Last publish

    Collaborators

    • jeffjewiss