Use imageantialias() to improve the pixelated image edge effect
During image processing, we often encounter the problem of jagging the edges of the image, especially when scaling the image or drawing graphic elements (such as lines, text, shapes). To improve these jagged edges, PHP provides a function called imageantialias() that significantly improves the smoothness of image rendering.
imageantialias