Skip to content

Instantly share code, notes, and snippets.

@kevzettler
Created April 2, 2013 19:42
Show Gist options
  • Save kevzettler/5295523 to your computer and use it in GitHub Desktop.
Save kevzettler/5295523 to your computer and use it in GitHub Desktop.
filepicker convert bmps
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