image-size
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -30,5 +30,5 @@ 'use strict'; | ||
// use filepath, get the last bytes, check for ffd9 | ||
var got = buffer.toString('hex', 6, 11); | ||
var expected = JFIFMarker && validJFIFMarkers[JFIFMarker]; | ||
return buffer.toString('hex', 6, 11) === expected; | ||
return (got === expected) || (JFIFMarker === 'ffdb'); | ||
} | ||
@@ -35,0 +35,0 @@ |
{ | ||
"name": "image-size", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "get dimensions of any image file", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
595420
44
457