ember-exif
v0.1.7
Published
Parse exif data from images and add it to the application as a importable module.
Downloads
19
Maintainers
Readme
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'))
}
})