Created
April 2, 2013 19:42
-
-
Save kevzettler/5295523 to your computer and use it in GitHub Desktop.
filepicker convert bmps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filepicker.pick(function(FPFile){ | |
if (FPFile.mimetype == "image/bmp"){ | |
filepicker.convert(FPFile, {format:'jpg'}, function(conv){ | |
// save_to(conv); | |
}) | |
} else { | |
// save_to(FPFile); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment