0.0.3 • Published 12 years ago

thumbdrop v0.0.3

Weekly downloads
14
License
-
Repository
github
Last release
12 years ago

thumbdrop

dubdrop compatible task for reading an image file and creating a thumbnail.

Usage

Make sure you have dubdrop installed.

npm install dubdrop
var dubdrop   = require('dubdrop');
var thumbdrop = require('thumbdrop');

function handleThumb (err, $img) {
    var $example = document.querySelector('body');
    $example.appendChild($img);
}

var exampleInput = dubdrop('#file-input', {
    'tasks': [
        thumbdrop(handleThumb)
    ]
});

Contributing

Running example:

npm start
0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago