Comparing version 1.1.1 to 1.1.2
@@ -27,4 +27,4 @@ 'use strict'; | ||
const size = data.data.length + constants.bitmapSize; | ||
const width = data.width <= 256 ? 0 : data.width; | ||
const height = data.height <= 256 ? 0 : data.height; | ||
const width = data.width === 256 ? 0 : data.width; | ||
const height = data.height === 256 ? 0 : data.height; | ||
const bpp = data.bpp * 8; | ||
@@ -128,3 +128,3 @@ | ||
return Promise.all(opts.sizes.filter(x => x <= data.width).sort((a, b) => b - a).map(x => resizeImg(data.data, { | ||
return Promise.all(opts.sizes.filter(x => x <= data.width).map(x => resizeImg(data.data, { | ||
width: x, | ||
@@ -131,0 +131,0 @@ height: x |
{ | ||
"name": "to-ico", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Convert PNG to ICO in memory", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
6190