decode-ico
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -118,4 +118,6 @@ function makeDivisibleByFour (input) { | ||
function decodeBmp ({ data, width, height }) { | ||
function decodeBmp ({ data, width: iconWidth, height: iconHeight }) { | ||
const headerSize = data.readUInt32LE(0) | ||
const bitmapWidth = (data.readUInt32LE(4) / 1) | 0 | ||
const bitmapHeight = (data.readUInt32LE(8) / 2) | 0 | ||
const colorDepth = data.readUInt16LE(14) | ||
@@ -128,2 +130,5 @@ let colorCount = data.readUInt32LE(32) | ||
const width = (bitmapWidth === 0 ? iconWidth : bitmapWidth) | ||
const height = (bitmapHeight === 0 ? iconHeight : bitmapHeight) | ||
const result = colorCount | ||
@@ -130,0 +135,0 @@ ? decodePaletteBmp(data, headerSize, { width, height, colorDepth, colorCount }) |
{ | ||
"name": "decode-ico", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "LinusU/decode-ico", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
151815
29
2031
1