timestamped-visuals

0.0.4 • Public • Published

TimestampedVisuals

creates a cluster of visual data, arranged by a given timeframe (day, month etc). The objects also contain exif information.

to install from npm, you write:

  npm install timestamped-visuals 

You embed the library with a command like this:

  TV = require('timestamped-visuals); 

To import the visual data and create an array of time clustered objects, you write:

    var x = new TV({
                path: "./../images",   // here you have to pass the path 
                filename: "image.json", // output file
                callback: done,
                timeframe: "day"
                });
  • the path parameter specifies the path where the images are located. Subfolders will also be scanned.
  • the filename specifies the output where the timestamped objects are written into. It should be *.json format
  • with the optional callback you can specify a callback function that receives the results, as a list of js objects.
  • with the timeframe parameter you define an ordering structure. For example 'day' will groop the files on a daily basis. Valid parameters are "minute", "hour", "day", "week", "month", "year"

In the examples folder you will find a sample that demonstrates a running example.

TimestampedVisuals works fine in conjunction with ClusterPainter


License

MIT

Copyright

Copyright © 2015. Phalanstere.

Package Sidebar

Install

npm i timestamped-visuals

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • phalanstere