npm

Need private packages and team management tools?Check out npm Orgs. »

sails-hook-thumber

0.11.0 • Public • Published

Sails Hook Thumber

Create fastly thumber for you file and store it in locale disk or in Amazon S3

Check native-thumber for config thumb

You need :

sudo apt-get install libmagick++-dev

Installation

npm install sails-hook-thumber --save

USECASE

thumbConf =
    fd: item.fd
    filename: filename
    size: item.size

sails.hooks.thumber.process thumbConf, () ->
    console.log "success start"

Ex: In your Controller

req.file('file').upload (err, files) ->
    for file in files
        thumbConf =
            fd: file.fd
            filename: 'test.jpg'
            size: file.size
        sails.hooks.thumber.process thumbConf, () ->
            console.log "success start"

install

npm i sails-hook-thumber

Downloadsweekly downloads

3

version

0.11.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability