zhangyuanwei / node-images

Cross-platform image decoder(png/jpeg/gif) and encoder(png/jpeg) for Nodejs
https://npmjs.org/package/images
MIT License
1.56k stars 205 forks source link

PNG resize antialiasing #84

Closed sta-ger closed 5 years ago

sta-ger commented 8 years ago

Hi! I'm trying to resize a transparent PNG image like this one: image

I'm doing:

var img = images(filePath); img.resize(newWidth, newHeight); img.save(filePath);

As a result I have an ugly image with ragged borders. image

Am I doing something wrong or is it a bug in node-images?

amcs99 commented 2 years ago

Is this problem solved? I'm still got trouble with it when resize image.