image-headers
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -158,2 +158,8 @@ // Generated by CoffeeScript 1.4.0 | ||
if (position === 2) { | ||
if (!(this.buffer.length > this.jpeg.marker_offset + 2)) { | ||
this.finished = true; | ||
this.clear_jpeg_marker(); | ||
console.log("Aborting parse at " + this.jpeg.marker_offset + " " + this.jpeg.marker + " " + this.buffer.length); | ||
return; | ||
} | ||
length = this.buffer.readUInt16BE(this.jpeg.marker_offset + 1); | ||
@@ -160,0 +166,0 @@ this.jpeg.marker_size = length; |
{ | ||
"name": "image-headers", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Parse image headers from a stream without loading the entire image.", | ||
@@ -5,0 +5,0 @@ "keywords": ["exif", "jpeg", "jpg", "gif", "png", "streaming"], |
12724
272