Home  >  Article  >  Backend Development  >  How to use intervention image to modify the color of non-transparent areas in pictures?

How to use intervention image to modify the color of non-transparent areas in pictures?

WBOY
WBOYOriginal
2016-07-06 13:52:111485browse

There is a fill() method in intervention/image, but it can only modify the color of regular-shaped pictures. Now my picture has a transparent background. I want to fill the non-transparent area with the color of the picture. What method should I use?

Reply content:

There is a fill() method in intervention/image, but it can only modify the color of regular-shaped pictures. Now my picture has a transparent background. I want to fill the non-transparent area with the color of the picture. What method should I use?

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