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

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

WBOY
WBOYOriginal
2016-09-24 09:15:121704browse

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?

Reply content:

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?

Use border-radius

I agree with the point above. For example, if you use IE8 to open site B, your avatar will be square because IE8 does not support the radius-border attribute

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