jimp-dev/jimp

Resizing an image with transparency

Open

#442 aberto em 26 de abr. de 2018

Ver no GitHub
 (4 comments) (4 reactions) (0 assignees)JavaScript (785 forks)batch import
bughelp wantedsolution in issue

Métricas do repositório

Stars
 (13.218 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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

Resized picture with RESIZE_BEZIER logo-1083

Guia do colaborador