Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image resize #6

Open
cristea2017 opened this issue Jul 16, 2020 · 1 comment
Open

Image resize #6

cristea2017 opened this issue Jul 16, 2020 · 1 comment

Comments

@cristea2017
Copy link

cristea2017 commented Jul 16, 2020

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!!!

Screenshot 2020-07-16 at 11 08 31

how to resolve that ?

@cristea2017
Copy link
Author

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!!!

Screenshot 2020-07-16 at 11 08 31

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant