P
P
Prescott2012-10-30 09:59:08
Nginx
Prescott, 2012-10-30 09:59:08

Noise on transparent area after resizing via ngx_http_image_filter_module

Hello.
There is a png picture, a significant part of it is completely transparent (when filling a transparent area in paint, the entire area is filled evenly). After resizing via ngx_http_image_filter_module, a subtle noise appears on the transparent area (seen again when trying to fill this area in paint). I didn’t find anything in the documentation about the quality of resizing png images, maybe someone faced a problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
red_andr, 2012-11-01
@red_andr

Old versions of GD had this problem with gdImageCopyResampled used in ngx_http_image_filter_module: grokbase.com/t/php/php-bugs/047pm8gqye/29315-new-bug-in-imagecopyresampled
Not sure if it was fixed, so they think it is such a feature of the algorithm. If it does not help, then I can advise you to play with the size of the resulting image. Powers of two should work just fine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question