Home > Backend Development > PHP Tutorial > 有没有好用的图片压缩代码imagecopyresampled 有些图片不能压缩,该如何处理

有没有好用的图片压缩代码imagecopyresampled 有些图片不能压缩,该如何处理

WBOY
Release: 2016-06-13 10:21:02
Original
1017 people have browsed it

有没有好用的图片压缩代码imagecopyresampled 有些图片不能压缩


有没有好用的图片压缩代码imagecopyresampled 有些图片不能压缩如在网上下载的jpg尺寸稍大点的图片.

------解决方案--------------------
用ImageMagick
------解决方案--------------------
imagecopyresampled 与 imagecreatetruecolor搭配一起使用效果更佳。
手册有例子:http://php.net/manual/en/function.imagecopyresampled.php

Related labels:
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template