node-potrace icon indicating copy to clipboard operation
node-potrace copied to clipboard

STEPS_AUTO

Open BryBo617 opened this issue 4 years ago • 0 comments

Posterizer.STEPS_AUTO = -1;

It appears that the default value should be 1 and not -1. The validation in setParameters is looking for a number between 1 and 255.

if (params.steps && !Array.isArray(params.steps) && (!utils.isNumber(params.steps) || !utils.between(params.steps, 1, 255))) { throw new Error('Bad \'steps\' value'); }

BryBo617 avatar May 06 '21 14:05 BryBo617