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
  • Select an option

  • Save jpadilla/11404232 to your computer and use it in GitHub Desktop.

Select an option

Save jpadilla/11404232 to your computer and use it in GitHub Desktop.

Revisions

  1. jpadilla revised this gist Apr 29, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion demo.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    var previews = new FilePreviews({debug: true});
    var previews = new FilePreviews({debug: true, loaderImage: 'http://placehold.it/100x100'});

    var url = 'https://www.filepicker.io/api/file/WHOGzEmPRSGNYKyHRBWk';
    var options = {
  2. @gcollazo gcollazo renamed this gist Apr 29, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. @gcollazo gcollazo created this gist Apr 29, 2014.
    14 changes: 14 additions & 0 deletions demo.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    var previews = new FilePreviews({debug: true});

    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);
    });