Skip to content
dubdrop compatible task for reading an image file and creating a thumbnail.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example
lib
.gitignore
.npmignore
.travis.yml
LICENSE.md
README.md
makefile
package.json

README.md

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
Something went wrong with that request. Please try again.