Home >Backend Development >PHP Tutorial >How to turn the user avatar obtained by php WeChat into a circle?

How to turn the user avatar obtained by php WeChat into a circle?

WBOY
WBOYOriginal
2016-09-24 09:03:151421browse

If you want to paste the obtained user avatar information on the poster as a watermark, instead of displaying it directly, you need to save the avatar first and then crop it into a circle and add it to the poster to generate a new picture
The obtained avatar is a square , how to turn it into a circle?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn