Home > Backend Development > PHP Tutorial > 怎么在不改变图片大小情况下压缩图片质量

怎么在不改变图片大小情况下压缩图片质量

WBOY
Release: 2016-06-13 13:42:21
Original
1625 people have browsed it

如何在不改变图片大小情况下压缩图片质量?
如何不改变图片大小情况下压缩图片质量?

像PHOTOSHOP一样,可以设置图片质量保存的。

求教,谢谢。

------解决方案--------------------
bool imagejpeg ( resource image [, string filename [, int quality]] )

quality 为可选项,范围从 0(最差质量,文件更小)到 100(最佳质量,文件最大)。默认为 IJG 默认的质量值(大约 75)。 

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