Comparing version
@@ -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", |
6190
-0.32%