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

How to resize png image with pngjs ? #219

Open
finscn opened this issue Dec 9, 2020 · 1 comment
Open

How to resize png image with pngjs ? #219

finscn opened this issue Dec 9, 2020 · 1 comment

Comments

@finscn
Copy link

finscn commented Dec 9, 2020

I want to resize/scale the image .
How can i do this ?

thanks

@Malvineous
Copy link

pngjs will read the image into an array of pixels. You can then use whatever algorithm you want to do the scaling on your array. pngjs does not implement any sort of image manipulation, only reading and writing pixel data.

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

2 participants