Skip to content

Instantly share code, notes, and snippets.

@jpadilla
Forked from gcollazo/demo.js
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpadilla/11404232 to your computer and use it in GitHub Desktop.
Save jpadilla/11404232 to your computer and use it in GitHub Desktop.
var previews = new FilePreviews({debug: true, loaderImage: 'http://placehold.it/100x100'});
var url = 'https://www.filepicker.io/api/file/WHOGzEmPRSGNYKyHRBWk';
var options = {
size: {
width: 100,
height: 999,
},
metadata: ['ocr', 'exif']
};
previews.generate(url, options, function(err, result) {
console.log(result);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment