Home  >  Article  >  php教程  >  解决php从excel中读取png,gif时图片背景为黑色

解决php从excel中读取png,gif时图片背景为黑色

WBOY
WBOYOriginal
2016-06-06 20:11:051234browse

imagealphablending($image,false); imagesavealpha($image,true); imagegif($image, $path); imagealphablending($image,false); imagesavealpha($image,true); imagepng($image, $path); 原文地址:解决php从excel中读取png,gif时图片背景为黑色, 感谢原作

  imagealphablending($image,false);
  imagesavealpha($image,true);
  imagegif($image, $path);
  imagealphablending($image,false);
  imagesavealpha($image,true);
  imagepng($image, $path);
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