API Docs for: 2.0.0

Class Asset

Class defined in: src/node-assets.js:44

Class describing one asset (file or url)

Object Asset( )
src/node-assets.js:44

Returns: <Object>

an object representing an empty asset

Number height( )
src/node-assets.js:126

Get the height of an asset, from the EXIF data


Returns: <Number>

height in pixel

setEXIF( exifdata )
src/node-assets.js:93

Set the metadata for an asset

Parameters:
  • exifdata <Object>

    an object containing EXIF data

setFilename( aFilename )
src/node-assets.js:70

Set an filename for an asset

Parameters:
  • aFilename <String>

    name of the file

setURL( aURL )
src/node-assets.js:58

Set an URL for an asset

Parameters:
Number width( )
src/node-assets.js:116

Get the width of an asset, from the EXIF data


Returns: <Number>

width in pixel