New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

image-headers

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-headers - npm Package Compare versions

Comparing version 0.2.8 to 0.3.0

17

lib/image_headers.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc