image-headers
Advanced tools
Comparing version 0.2.8 to 0.3.0
@@ -79,14 +79,9 @@ // Generated by CoffeeScript 1.4.0 | ||
}, function(err, exif_data) { | ||
var orientation_tag, temp_w; | ||
var temp_w; | ||
if ((exif_data != null) && (exif_data.image != null)) { | ||
orientation_tag = exif_data.image.filter(function(tag) { | ||
return tag.tagName === "Orientation"; | ||
}); | ||
if (orientation_tag.length === 1) { | ||
local_this.orientation = orientation_tag[0].value; | ||
if (local_this.orientation === 6 || local_this.orientation === 8) { | ||
temp_w = local_this.width; | ||
local_this.width = local_this.height; | ||
local_this.height = temp_w; | ||
} | ||
local_this.orientation = exif_data.image.Orientation; | ||
if (local_this.orientation === 6 || local_this.orientation === 8) { | ||
temp_w = local_this.width; | ||
local_this.width = local_this.height; | ||
local_this.height = temp_w; | ||
} | ||
@@ -93,0 +88,0 @@ local_this.exif_data = exif_data; |
{ | ||
"name": "image-headers", | ||
"version": "0.2.8", | ||
"version": "0.3.0", | ||
"description": "Parse image headers from a stream without loading the entire image.", | ||
@@ -24,3 +24,3 @@ "keywords": ["exif", "jpeg", "jpg", "gif", "png", "streaming"], | ||
"dependencies": { | ||
"exif": "git://github.com/sujal/node-exif.git" | ||
"exif": "git://github.com/sujal/node-exif.git#image-headers-0.3.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
13068
290