imagejs
imagejs copied to clipboard
Image resize
After reading a png image i try to resize that by following code
var thumbnail = bitmap.resize({ width: 128, height: 128, algorithm: "nearestNeighbor", });
Here a got result (left image) image is resizing but somethink happened with image
!!!Right image is source image!!!

how to resolve that ?
After reading a png image i try to resize that by following code
var thumbnail = bitmap.resize({ width: 128, height: 128, algorithm: "nearestNeighbor", });Here a got result (left image) image is resizing but somethink happened with image!!!Right image is source image!!!
how to resolve that ?
If you don't find solution for this , try this out https://www.npmjs.com/package/image-js works ideally for resizing ;)