A
A
Alexander Vladimirovich2014-09-20 23:46:23
PHP
Alexander Vladimirovich, 2014-09-20 23:46:23

How to enlarge an image with anti-aliasing in php?

How to enlarge an image with anti-aliasing in php to get the result in the figure on the right.
With the use of imagecopyresampled it turns out as on the left. And I need muddy.
cda51b3b3b244ae295f1fed97a516b59.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
radioxoma, 2014-09-21
@polyanin

Searching the documentation helped me find the imagesetinterpolation function . Try setting IMG_BICUBIC, IMG_GAUSSIAN etc.
The default is bilinear (IMG_BILINEAR_FIXED), which gives the result on the left.

K
kompi, 2014-09-21
@kompi

Further process with imagefilter with any blur filter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question