visual-data

0.0.41 • Public • Published

VisualData

Features:

You pass a folder name and receive image information of all the visual files that can be found in the folder and its subdirectories. In case you have a list of image files alrady, you may also pass an array.

  function visualData([folder], [callback])
  • The callback receives a timestamp sorted array of objects with the following structure:
      file = file;
        date = the creation time of the image
        time = converted to a timestamp
        this.exif  = exif information

Here is an example

 
 
function done(result)
    {
    if (result.length > 0) console.log(result[0].exif.ExposureTime);        
    }
 
 
visualData("folder", done);
 

Readme

Keywords

Package Sidebar

Install

npm i visual-data

Weekly Downloads

1

Version

0.0.41

License

MIT

Last publish

Collaborators

  • phalanstere