Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-13 10:38:17
Original
784 people have browsed it

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

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

  图片:

  

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!