cordova-plugin-flytit-thumbcreator

0.0.7 • Public • Published

cordova-plugin-flytit-thumbcreator

Thumbnail creator plugin for cordova

This plugin defines a global ThumbCreator object.

Installation

cordova plugin add cordova-plugin-flytit-thumbcreator

API Reference

ThumbCreator

ThumbCreator.createThumb(fromUri, folderToSaveThumb, successCallback, errorCallback)

The createThumb function creates a thumb from the uri in fromUri (ex: '/DCIM/Camera/2015011102020.jpg'), and saves the thumb to the folder specified in folderToSaveThumb (ex: '/YourFolder/thumbs').

The return value is sent to the successCallback:

  • An object containing:
  • absolutePath
  • shortPath (without external storage directory, ex: ('/YourFolder/thumbs/_thumb_2015011102020.jpg')

Package Sidebar

Install

npm i cordova-plugin-flytit-thumbcreator

Weekly Downloads

2

Version

0.0.7

License

Apache 2.0

Last publish

Collaborators

  • flytit