jimp-dev / jimp-dev/jimp

Resizing an image with transparency

Open
#442 4 comments 4 reactions 0 assignees View on GitHub
bug help wanted solution in issue
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

Hy guys !
I have a little problem and I can not find answers.
When I try to resize a picture with transparency I get a border between transparency and the other color. On white you can see the border really clear on other colors not so much, but is there.

If I use RESIZE_NEAREST_NEIGHBOR the transparent image looks okay, but the quality of other pictures is poor.
If I use the other ones I end up with a picture with a border between transparency and color.
Do you have any idea ? Any advices ? Thank you !

Original picture:
![label](https://user-images.githubusercontent.com/19775848/39313302-55f43cf8-497a-11e8-8591-dd10514b98f0.png)

Resized picture with RESIZE_BEZIER
![logo-1083](https://user-images.githubusercontent.com/19775848/39313312-6013e134-497a-11e8-988a-75fb90671791.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.