Home >php教程 >php手册 >PHP缩略图生成失真解决方案

PHP缩略图生成失真解决方案

WBOY
WBOYOriginal
2016-06-13 10:38:17826browse

  1.用imagecreatetruecolor和imageCopyreSampled函数分别取代imagecreate和imagecopyresized

  2.给imagejpeg的第三个参数带上100(例:imagejpeg($ni,$toFile,100))

  图片:

  

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
Previous article:SVN入门及配置使用Next article:wordpress seo优化