This file contains 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
// A very crude tool to extract GDepth:Data chunks from the XMP data in images | |
// that use the Lens Blur feature in Google's Android Camera App | |
// Usage: node gdepth-extract.js <image name.jpg> | |
// Outputs <image name.png> | |
// Requires Buffer Tools for buffer.indexOf(): npm install buffertools | |
require('buffertools').extend(); | |
var fs = require('fs'), | |
image = (process.argv)[2], |
This file contains 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
/* | |
* base58.js | |
* - encodes integers to and decodes from a base58 (or your own) base58 alphabet | |
* - based on Flickr's url shortening | |
* | |
* usage: | |
* base58.encode(integer); | |
* base58.decode(string); | |
* | |
* (c) 2012 inflammable/raromachine |