Skip to content

Instantly share code, notes, and snippets.

View rexmac's full-sized avatar

Rex McConnell rexmac

View GitHub Profile
@rexmac
rexmac / gist:3189232
Created July 27, 2012 17:21 — forked from getify/gist:3185473
attempting to use jParser to extract dimensions of JPG image file
var fs = require("fs");
var jParser = require("jParser");
var eof = false;
fs.readFile("sample.jpg",function(err,data) {
if (!err) {
var view = new jDataView(data, undefined, undefined, false);
var parser = new jParser(view,{
// JPG